I'm actually pretty fond of JavaScript, but here's a question that has caught me out in real code:
const
x = [1, 10, 2],
y = x.sort();
Now: what is the value of x? (Edit: and y?)