Basic JavaScript Instructions Flashcards
A data type that produces either true or false.
Booleans
When do you add a semicolon?
Semicolons are actually not required at the end of all statements. The only place semicolons are required is when you have multiple statements on the same line. Still, applying semicolons after every statement (even if they’re not on the same line) is considered a best practice.
Read-eval-print-loop (REPL)
a program that reads code, evaluates, and prints it. By looping, the program goes through a continual cycle of input. The use case for a REPL is to experiment with a language.
Undefined
a special value in JavaScript to represent an unassigned variable.
Arrays
a collection of values. In JavaScript, the array can consist of values with varying data types.
Objects
a data structure that collects data. Uses a key-value structure. A key-value pair is referred to as a property
Loops and iteration
With for, while, and do-while loops, you can make your JavaScript programs execute code repeatedly.