Chapter 2. JavaScript Programming Basics

After completing this chapter, you will be able to

  • Know where to place JavaScript in a webpage

  • Understand basic JavaScript syntax

  • Create JavaScript variables and understand common data types

  • Use looping and conditional constructs in your JavaScript code

NOW THAT YOU HAVE A TASTE of what JavaScript can do, it’s time to look at JavaScript’s inner workings. Admittedly, the chapter won’t get too far into the inner workings—just far enough to make you proficient but not overwhelmed. Between this chapter and the next, you’ll have a firm foundation with which you’ll be able to build programs and troubleshoot existing JavaScript programs.

In this chapter, you’ll look at the syntax and rules of the language. This includes ...

Get Microsoft® Start Here!™ Learn JavaScript 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.