Chapter 2
Writing Your First JavaScript Program
IN THIS CHAPTER
Arranging your development environment
Getting to know JavaScript code
Understanding a simple JavaScript program
Understanding the value of commenting your code
“The secret of getting ahead is getting started.”
— MARK TWAIN
Simple JavaScript programming isn’t difficult to understand. In this chapter, you go through the process of setting up your computer for writing JavaScript. You also write your first JavaScript program and get to know the basic syntax behind everything you’ll do with JavaScript in your future as a programmer.
Setting Up Your Development Environment
It’s important to have all your tools set up and in place before beginning to write your first JavaScript program. The first step, if you haven't already done it, is to go through the process of downloading and installing JavaScript development tools. If you have preferred tools other than the ones recommended in this chapter, please feel free to use those. However, you should still read this section of the book to learn about some of the most popular ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access