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 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.