based on this course
Numbers and strings are values. Objects and functions are values, too. Our code interacts with values, but values exist in a completely separate space. My code contains instructions like “make a function call,” “do this thing many times,” or even “throw an error.” I might refer to values in my code, but they don’t exist inside my code.
- Primitive Values. They can be numbers and strings, among other things
- Undefined (undefined), used for unintentionally missing values.