Weird behaviors of javascript: Primitive Types and Reference Types
I recently learned a difference between Primitive types and Reference types. I thought it would be great to write a blog post about this topic. Let's start with a code snippet let a = 1; let b = a; console.log(b); // 1 a = 2; console.log(b); // 1 Well…