Calculator.html will is a very basic javascript calculator
index.html just lists items and has very basic create and delete functionality for those list items.
-
Given an input field add an LI to a UL with it's inner text equal to the value inside the input field
- add an X to the LI. When you click the X delete the LI.
-
Given an input field an IMG element whose SRC attribute is equal to the value of the input field
- when you click an image delete the IMG
-
Selectors
- Find by ID
- Class
- querySelector
- querySelectorAll
-
Create element with .craeteElement
-
Add element using += innerHTML
- Impact of += innerHTML on events
-
Handling events
- event.target
-
Events delegation
-
Data attributes
-
Lexical scope