From the course: Learn JavaScript: Write Modern Code with JavaScript ESNext

Unlock this course with a free trial

Join today to access over 25,000 courses taught by industry experts.

Learning objectives

Learning objectives

- Welcome to Lesson 7, Write and Run a JavaScript Program. In this lesson, you see how to run code not only in the browser as JavaScript was originally designed to do, but also outside the browser using the Node.js runtime. Additionally, you learn how to use a tool called Babble to allow us to write JavaScript in the most modern way possible, even when our target runtime doesn't support it. Now, by the end of the lesson, you'll have a foundational knowledge of how to write and run JavaScript programs for several different environments. And next, let's take a look at the basic structure of this lesson. We start off by talking about the basics of writing and running JavaScript code, and we also discuss the basic JavaScript program that we'll be writing in this section. And this program will of course include some of the most common syntax that we've seen so far in the course. After that, we move on to actually writing the program that we've specified and running it in the browser…

Contents