Programming with Umair
What will the following code output?let x = [1, 2, 3];let y = [...x];y.push(4);console.log(x);
1 year ago | [YT] | 9
Programming with Umair
What will the following code output?
let x = [1, 2, 3];
let y = [...x];
y.push(4);
console.log(x);
1 year ago | [YT] | 9