Number Representations in JS

  • SMI - Small Integers (roughly up to 2^30 depending on the architecture)
  • Heap Number - Floating Point numbers stored on the heap that don't change
  • Mutable Heap Numbers - Floating Point numbers stored on the heap that do change
  • Variables can switch their representation and then may not switch back

13 / 24