Common Computer Science References
At the end of this lesson, you will be able to:
understand and use session and local storage
this is JavaScript only
it would be really nice if we could save information, even after we close a program
go over what is:
session storage
local storage
go over adding a function call to when the page finishes loading:
<body onload="updateCookieCount()">
using local storage, create a "Cookie Clicker" app
ours is going to be super simple:
an image of a cookie
a counter under it
when you click on the cookie, 1 is added to the counter
AND the total is also saved to local storage, so when you come back, you still have your score!
take one of your previous JS repos that has a textbox input
save the data the user enters from the last time they used it.