Webdev

Technology

Mutable Objects in JavaScript

JavaScript Objects and Arrays are mutable data structures, and constants and variables are references. I tripped over this recently working on state update logic in a React app.

Read