Values & References1 / 18
Up next

Primitives copy by value

let a = 5;
let b = a;
b += 1;
// b is its own copy; a is unchanged
console.log(a, b);
What you're solving

a number assignment is independent