This eBook includes the following formats, accessible from your Account page after purchase:
EPUB The open industry format known for its reflowable content and usability on supported mobile devices.
MOBI The eBook format compatible with the Amazon Kindle and Amazon Kindle applications.
PDF The popular standard, used most often with the free Adobe® Reader® software.
This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.
Also available in other formats.
Register your product to gain access to bonus material or receive a coupon.
1 Hello, World!
2 Easily testing your code
Part I The Basic Stuff
3 Values and Variables
5 Conditional Statements: If, Else, and Switch
6 Meet the Loops: For, While, and Do...While!
8 Variable Scope
9 Let and Const
11 Where Should Your Code Live?
12 Commenting Your Code
Part II It's an Object-Oriented World
13 Of Pizza, Types, Primitives, and Objects
15 When Primitives Behave Like Objects
18 A Deeper Look at Objects
19 Extending Built-in Objects
20 Defining Objects as a Class
21 Extending Objects
22 Booleans and the Stricter === and !== Operators
23 Null and Undefined
24 Immediately Invoked Function Expressions
Part III Working with the DOM
25 JS, The Browser, and The DOM
26 Finding Elements in the DOM
27 Modifying DOM Elements
28 Styling Your Content
29 Traversing the DOM
30 Creating and Removing DOM Elements
31 In-Browser Developer Tools
Part IV Dealing with Events
33 Event Bubbling and Capturing
34 Mouse Events
35 Keyboard Events
36 Page Load Events and Other Stuff
37 Handling Events for Multiple Elements
38 Promises and Asynchronous Events
Part V Web Components
39 What are web components?
40 Building a custom element
41 Styling and the Shadow DOM
42 Templates and Slots