A. Answers

Chapter 1

1. Structure, presentation, and behavior

2. Content

3. Progressive enhancement ensures that you are using the proper amount of code in the correct places, which promotes strong caching of the technologies in the browser.

Chapter 2

1. The behavior layer

2. JavaScript at the bottom allows the entire document to load before JavaScript blocks the download of subsequent objects on the page.

3. Cookies

Chapter 3

1. A function that is declared as it runs and has no assigned name

2. When it is called by another function

3. Through events

Chapter 4

1. Document, Element, Text, Attribute

2. The DOM is a standardized outline of an HTML document that creates access points or “hooks” in the form of nodes by which JavaScript can enter. ...

Get Learning JavaScript: A Hands-On Guide to the Fundamentals of Modern 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.