JavaScript Hashtable berisi kunci
if (obj.hasOwnProperty("key1")) {
...
}
Faithful Finch
if (obj.hasOwnProperty("key1")) {
...
}
function makeArray(w, h, val) {
var arr = [];
for(let i = 0; i < h; i++) {
arr[i] = [];
for(let j = 0; j < w; j++) {
arr[i][j] = val;
}
}
return arr;
}
let data = [];
for (let row=0; row<rows; row++) {
data.push(new Array(cols).fill('#'));
};