Junior JavaScript

What is the difference between mutable and immutable objects?

  • Mutable: Can be changed after creation (e.g., arrays, objects).
  • Immutable: Cannot be changed once created (e.g., strings, numbers).

More from JavaScript Tutorial

All questions for this course