JavaScript Tips and Techniques

JavaScript is the de facto programming language of the Web, and is the primary tool you’ll be using to interact with the HTML5 features covered in this book. In this chapter I’ll cover a few tips on organizing the JavaScript for your applications, and some more powerful techniques you can use to simplify your scripts. This brief chapter isn’t meant to be a full JavaScript reference—for that, you can consult other Apress titles, such as JavaScript Programmer’s Reference.

Code Formatting

Generally speaking, I avoid holy wars about code formatting styles such as bracketing and indentation. Usually the individual ...

Get HTML5 Programmer’s Reference now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.