Chapter 1. A Quick dip into javascript: Getting your feet wet
JavaScript gives you superpowers. The true programming language of the web, JavaScript lets you add behavior to your web pages. No more dry, boring, static pages that just sit there looking at you—with JavaScript, you’ll be able to reach out and touch your users, react to interesting events, grab data from the web to use in your pages, draw graphics right into those pages, and a lot more. And once you know JavaScript, you’ll also be in a position to create totally new behaviors for your users.
You’ll be in good company, too. JavaScript’s not only one of the most popular programming languages, it’s also supported in all modern browsers and is used in many environments outside of the browser. More on that later; for now, let’s get started!
The way JavaScript works
If you’re used to creating structure, content, layout, and style in your web pages, isn’t it time you added a little behavior as well? After all, there’s no need for the page to just sit there. Great pages should be interactive and dynamic. That’s where JavaScript comes in. Let’s start by taking a look at how JavaScript fits into the web page ecosystem:
How you’re going to write JavaScript
JavaScript is the programming language for the web browser. With ...