Every program begins with getting a computer to do something you can see. You'll write and run real JavaScript inside the editor, display messages on screen, annotate your work with comments so it stays readable, learn to read an error message and repair the line it points at, and finish by storing your first value under a name you choose.
Overview
Syllabus
Printing Output with console.log
- Watch JavaScript Run Top to Bottom
- Make Your Program Say Hello
- Print a Number on Its Own Line
- Print a Short Receipt
Writing Comments and Readable Code
- Spot What the Computer Ignores
- Add a Note Above the Code
- Hide a Line from the Output
- Tidy a Cramped Program
Reading and Repairing an Error
- Read the Message
- Repair a Missing Quotation Mark
- Repair a Missing Parenthesis
- Find the Faulty Line Among Several
Storing a Value with const
- Store a Name and Print It
- Store a Price and Print It with a Label
- Reuse One Value Twice
- Rename for Clarity