Day 2 of 14 30 minlet / constPrimitivestypeof
Store values with let and const, meet JavaScript's seven primitive types and objects, check types with typeof, and convert between them.
By the end of today you can
- Declare variables with let and const, and know when to use each
- Name variables following JavaScript's rules and conventions
- Recognise the primitive types and objects
- Check a value's type with typeof
- Convert between strings, numbers and booleans
What's inside
- 9 sections
- 3 diagrams and mind maps
- 10 code examples you can run
- 6-question quiz
- 1Variables are labels for values
- 2let or const?
- 3Naming variables
- 4JavaScript's types
- 5Checking types with typeof
- 6JavaScript is dynamically typed
- 7undefined vs null
- 8Numbers
- 9Converting between types
Sign in free to read this lesson
Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.
Sign in free