Understanding Primitive vs. Reference Types in JavaScript: Why Does My Object Change?
As a budding JavaScript developer, I recently stumbled upon a fascinating (and slightly confusing!) behavior while experimenting with strings and objects. I wrote a simple piece of code to copy a string and an object, modified the copies, and expecte...
rahulmishrawrites.hashnode.dev7 min read