JavaScript Utwórz macierz

// this will create a 2D array of 'none' word
var size = 3;
var myArray = Array(size).fill( Array(size).fill("none") );

console.log(myArray);
/*
[
	["none", "none", "none"],
	["none", "none", "none"],
	["none", "none", "none"]
]
*/
rawand-faraidun