We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23f10ab commit 4285e0aCopy full SHA for 4285e0a
1 file changed
Expense Tracker/js/script.js
@@ -95,4 +95,16 @@ function removeTransaction(id) {
95
// Update local storage transactions
96
function updateLocalStorage() {
97
localStorage.setItem('transactions', JSON.stringify(transactions));
98
-}
+}
99
+//Init app
100
+
101
+function init() {
102
+ list.innerHTML = '';
103
104
+ transactions.forEach(addTransactionDOM);
105
+ updateValues();
106
107
108
+init();
109
110
+form.addEventListener('submit', addTransaction);
0 commit comments