Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
let arr = [
  [1, 2, 3],
  [4, 5, 6],
  [7, 8, 9]
];
var arrclone = arr.slice();
console.log(arrclone);
console.log(arr[2][2]);
console.log(arrclone[2][2]);
arrclone[2][2] = "Hola!";
console.log(arr[2][2]);
console.log(arrclone[2][2]);
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers