You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// references for arrays
|
|
|
|
// 42-tiny-js change begin --->
|
|
//var a; // in JavaScript it's not allowed to add properies to a var with type "undefined"
|
|
var a = [];
|
|
//<--- 42-tiny-js change end
|
|
|
|
a[0] = 10;
|
|
a[1] = 22;
|
|
|
|
b = a;
|
|
|
|
b[0] = 5;
|
|
|
|
result = a[0]==5 && a[1]==22 && b[1]==22;
|