We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8529b00 commit a62852eCopy full SHA for a62852e
1 file changed
Expense Tracker/js/script.js
@@ -83,4 +83,12 @@ function updateValues() {
83
balance.innerText = `${total}`;
84
money_plus.innerText = `${income}`;
85
money_minus.innerText = `${expense}`;
86
+}
87
+// Remove transaction by ID
88
+function removeTransaction(id) {
89
+ transactions = transactions.filter(transaction => transaction.id !== id);
90
+
91
+ updateLocalStorage();
92
93
+ init();
94
}
0 commit comments