JavaScript Basics Vocabulary
Word Bank
| JavaScript | Node.js | variable |
| let | const | string |
| number | boolean | console.log |
| concatenation | operator |
Fill In the Blanks
1) is a programming language that runs on many different devices.
2) lets us run JavaScript outside of a web browser, like in the terminal.
3) A is like a labeled box where you store information.
4) Use when a variable might change; use when it stays the same.
5) A is text wrapped in quotes, like “Hello”.
6) A is a numeric value without quotes, like 42.
7) A is either true or false.
8) displays information in the terminal so you can see what your program is doing.
9) is joining strings together using the + symbol.
10) An is a symbol that performs an action, like + or -.
Quick Checks
- Circle the valid variable names:
myName/my-name/my name/firstName - Draw a line matching data types to examples:
- String
42 - Number
"Hello" - Boolean
true
- String
Stretch: Code Detective
Find and circle the mistake in this code:
let my name = "Sam;
const age = 12;
console.log("I am" + name + "years old");
Hint: Look for missing quotes, spaces in names, and missing spaces in output!