Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Lesson 08: Data types

JavaScript has 7 primitives + Object.

What you'll learn

  • primitives: string, number, bigint, boolean, undefined, null, symbol
  • everything else is an object (arrays, functions, dates...)
  • typeof value returns the type as a string
  • primitives are immutable and copied by value; objects are by reference

Example

See examples/.

Exercise

Write describe(value) returning a friendly type name.