-
Open the
task-3-tapas-appfolder in VS Code and open theindex.htmlfile in your browser. -
You should see a tapas app with list of tapas and a form to add new tapas.
-
Your task is to make the tapas app work.
-
The data should be stored in the
localStorageproperty of thewindowobject and should persist even after the browser is closed. -
For this task, you will need to edit the just the
script.jsfile. -
Hint: Look up the querySelector method in JavaScript.
-
Hint: Look up the querySelectorAll method in JavaScript.
-
Hint: Look up the addEventListener method in JavaScript.
-
Hint: Look up the localStorage property in JavaScript.
-
Hint: Look up the textContent property in JavaScript.
-
Hint: Look up the classList property in JavaScript.
-
Hint: Look up the createElement method in JavaScript.
-
Hint: Look up the preventDefault method in JavaScript.
-
Here is a GIF of the expected result:
