Chapter 2. The JavaScript Language: Data, Operators, and BranchingThis and the next chapter cover the JavaScript language itself. To be able to tackle the built-in browser objects, the built-in JavaScript objects, Dynamic HTML, and more, we need to have a solid understanding of how to use JavaScript itself. The language is the glue that will bind our scripts together and put the various objects we'll work with come under our control. In this chapter, we'll get started by seeing how JavaScript handles and stores data, how to work on that data, and how to test data values so we can take different actions in our code depending on what those values are. There's a lot coming up here, and I'll start by taking a look at how JavaScript handles data. |