Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Writing and Running Your First JavaScript Programs

via CodeSignal

Overview

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.

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

Reviews

Start your review of Writing and Running Your First JavaScript Programs

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.