Chapter 3: How to Write Code

Learning Objectives

Upon completing all the content in this chapter, you should be able to do the following:

  1. Write console.log statements
  2. Understand what syntax, comments and debugging are when you are coding

Key Terminology

Here is a list of the key terms throughout this chapter based on the page they first appear on. You should make note of these.

What is Code?

  1. code

Syntax Rules

  1. syntax

Comments

  1. comment

Output with console.log

  1. console
  2. newline

Fixing Errors in Your Code

  1. debugging