Que Publishing, 2016. — 416 p. — ISBN: 978-0-7897-5806-4.
JavaScript Absolute Beginner’s Guide No experience necessary! Make the most of JavaScript — even if you’ve never programmed anything before. This book is the fastest way to learn JavaScript and use it together with CSS3 and HTML5 to create powerful web and mobile experiences. Learn how to do what you want, the way you want, one incredibly easy step at a time. JavaScript has never been this simple! This is the easiest, most practical beginner’s guide to programming JavaScript with simple, reliable instructions for doing everything you really want to do!
Here’s a small sample of what you’ll learn:Learn why JavaScript is awesome
Organize your code with variables
Understand how functions make your code reusable
Use the popular if/else statement to help make a decision in code
Learn about switch statements and when to use them
Work with for, while, and do…while loops
Learn how to use global and local scope
Understand what closures are
Learn about the various places your code can live
Understand how to write comments and good commenting practices
Learn about the basic types of objects you’ll run into in JavaScript
Find out that pizza has an educational value beyond just being deliciously awesome
Understand how text is treated in JavaScript
Learn how to perform common string operations
Use arrays to handle lists of data
Learn to create custom objects
Hello, World!
The Basic StuffValues and Variables
Functions
Conditional Statements: If, Else, and Switch
Meet the Loops: For, While, and Do…While!
Timers
Variable Scope
Closures
Where Should Your Code Live?
Commenting Your Code
It’s an Object-Oriented WorldOf Pizza, Types, Primitives, and Objects
Strings
When Primitives Behave Like Objects
Arrays
Numbers
A Deeper Look at Objects
Extending Built-in Objects
Booleans and the Stricter === and !== Operators
Null and Undefined
Immediately Invoked Function Expressions
Working with the DOMJS, The Browser, and The DOM
Finding Elements in the DOM
Modifying DOM Elements
Styling Your Content
Traversing the DOM
Creating and Removing DOM Elements
In-Browser Developer Tools
Dealing with EventsEvents
Event Bubbling and Capturing
Mouse Events
Keyboard Events
Page Load Events and Other Stuff
Handling Events for Multiple Elements