C H A P T E R  4

JavaScript Primer

jQuery is a JavaScript library that you add to your HTML documents. On its own, the jQuery library doesn't do anything. You take advantage of the jQuery functionality from your own scripts that you add alongside the jQuery library. In this chapter, I provide a primer for the JavaScript language, focusing on the features that are most pertinent when working with jQuery.

JavaScript has had a difficult life and was rushed through standardization before it had a chance to mature properly. This has resulted in a language that can be very pleasant to work with but that has some odd behavioral and syntactical quirks.

Tip To get the best from this book, you will need some experience of programming and an understanding ...

Get Pro jQuery now with O’Reilly online learning.

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