Recap
In the first lesson, we learned that:
- We can print to the console using the
console.log()
function. - We write text in quotes
""
, numbers not. - We have the following arithmetic operations:
+
(addition),-
(subtraction),*
(multiplication),/
(division),%
(integer remainder). - Single-line comments are created by inserting
//
in the line, and everything in the line after this character is ignored by the computer. - Multi-line comments are created by inserting
/*
at the beginning and*/
at the end. - We store information in variables to be used later in the program.
- We can create, overwrite, and use a variable with
let
. - We can only create and use a variable with
const
. - We can concatenate text using the
+
sign.
Congratulations on completing the first JavaScript lesson! In the next lesson, we will learn how to use conditionals for variable program behavior!
Instructions
When you are ready, proceed to the next lesson!
Start programming for free
10/10