Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Lesson 02: Your first program

Hello world, and how a JS file is executed.

What you'll learn

  • a .js file is a script run top-to-bottom
  • console.log(...) prints to the terminal
  • no compile step — Node runs the source directly
  • statements usually end with ; (optional, see ASI lesson)

Example

See examples/.

Exercise

Print 'Hello, ' using a variable.