Join Joseph Lowery for an in-depth discussion in this video Retrieving list items, part of HTML5 Projects: Engaging Ecommerce.
So there is a call to loadFaves, and now let's put in that code itself.…I'll make a little extra room there, so we can see what's happening. So it's…function loadFaves curly brace pair.…Now the first thing we want to make sure is that the function that we're trying…to load exists. So we'll use an if statement, if (localStorage.get…item) and then another curly brace and then another set of parentheses and quotes,…and we want to check to see if the items favorites is the one that exists.…
So if that exists--and let's put in another curly brace pair here--then what we…
- Including range form elements
- Modifying the display interactively
- Dragging items to wish lists
- Storing wish list items locally
- Saving and retrieving list items