Mid JavaScript

What are primitive vs reference types?

  • Primitive types: stored in stack, immutable (number, string, boolean).
  • Reference types: stored in heap, mutable (object, array, function).

More from JavaScript Tutorial

All questions for this course