Questions

  1. Name some ways to store material on the client machine.

  2. What are the components of a script cookie?

  3. How should a cookie be defined to be destroyed when the browser closes?

  4. What type of data should be scrubbed on user input?

  5. Think of a web site you have created or might create in the future. Now think of five different uses for script cookies. In all of these uses, could you see needing more space than is provided for cookies?

Answers are provided in the appendix.

Get Learning JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.