Member-only story
Course content from Brad Traversy
Features:
input value to DOM
onclick delete item based on id
localStorage to get and set
HTML:
the income has a plus sign value
the expense has a minus sign value
the balance is the total of income and expense
The history is a list of income or expense either getting from the localStorage or the value of the input.
The form is the input part with the text and amount. When submitting, the input value display in the DOM history.
CSS