Recap

Kindergarten, page 9 of 9. A one-minute read.

  • You need three free tools: a web browser, a code editor (like VS Code), and Node.js.
  • The browser console lets you type JavaScript and run it instantly.
  • console.log(...) prints a message to the console. Text goes inside quotes.
  • Error messages are helpful, not scary. They tell you what went wrong.
  • You can put JavaScript in a file and load it into a web page with <script src="script.js"></script>.
  • You can run a JavaScript file with Node.js using node filename.js.
  • Code runs from top to bottom. Each instruction is a statement, ending with a semicolon.
  • JavaScript is case-sensitive. Console is not console.
  • Comments (// and /* */) are notes for humans that JavaScript ignores.
  • alert, prompt and confirm pop up message boxes, but only in the browser.

Reading is step one

CurlyScript turns these notes into a game: short questions, an explanation after every answer, and a test at the end of each grade. Free, with nothing to sign up for.

Start learning