en.javascript.info/1-js/3-object-basics/7-array/1-item-value/task.md
Ilya Kantor 057783d216 work
2016-07-21 17:05:55 +03:00

272 B

importance: 3


Is array copied?

What this code is going to show?

let fruits = ["Apples", "Pear", "Orange"];

// push a new value into the "copy"
let shoppingCart = fruits;
shoppingCart.push("Banana");

// what's in fruits?
alert( fruits.length ); // ?