complexity: 2 ; importance: 2; author: docentmail


Variables (Problem 2015-12-03-10-21)

Question: what does alert (x[1]); show?

var x = [1,2,3];
var y = x;
y[1]=100;
alert (x[1]);