Values, Data Types, & Operators
Please read the following;
- Haverbeke, Marijn. Eloquent JavaScript: A Modern Introduction to Programming. 3rd Edition. N.p., 2018. Web.
- JavaScript Guide. MDN web docs. 2018. Web.
Goals
At the end of the chapter you should have an understanding for;
- Values
- Regular Values
- Empty Values
- Data Types
- Numbers
- Regular Numbers
- Special Numbers
- Strings
- regular strings (
"Hello World!"
, 'single quote string'
)
- special characters (i.e.,
\n
, \t
)
- template literal strings (
these use backticks and have special properties
)
- Booleans
- Operators
- Basic mathematical operators
- addition/subtraction on numbers (
+
/-
)
- multiplication/division on numbers (
*
//
)
- modulo on numbers (
%
)
- String operators
- Unary Operators
- Comparison Operators
- Logical Operators
- Type Conversion
Interactive JS Console
While you work on this chapter, you should use the following interactive JS console to test out values, types, and operators.
Videos