Chapter 3. Getting started with JavaScript

When you create HTML documents, you’ll almost always add behavior to make the document more interactive. You might have animations or buttons that perform various actions. Maybe you need to retrieve data from the server as a user is typing in a text box. You can use JavaScript to accomplish these tasks because JavaScript is the programming language of the web.

This chapter starts by introducing you to JavaScript and then examines the JavaScript testing environment and test-driven development (TDD). As soon as you understand what JavaScript is, you’ll want to start writing some code to see whether it runs the way you think it should run. You’ll want to test your knowledge. You’ll want to write code for ...

Get Training Guide: Programming in HTML5 with JavaScript and CSS3 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.