If I do
for (let x of arr) { x = x * x; }
how could I make the changes made to x change in the original arr? I tried the above but arr doesn't change.
x
arr