Chapter 4: Data and Variables
Learning Objectives
After completing this chapter you should should understand the various data types covered, how to initialize variables, and use the typeof
operator to determine their value. You should also be familiar with operators
, operands
, and how to receive input from users using readline-sync
.
Key Terminology
- PEMDAS
- assignment
- initialization
- compund assignment
- const, constant
- camel case
readline-sync
Keywords
let
const
var
typeof
Values and Data Types
- String
- Number
- Object
Variables
- let
- var
Operators
- Additon:
+
- Subtraction:
-
- Multiplication:
*
- Division:
/
- Modulus:
%
- Exponentation:
**
- Increment:
++
- Decrement:
--