Untitled

 avatar
unknown
plain_text
a month ago
272 B
5
Indexable
console.log(nestedArray[2][1][0][0][0]);

This logs the string deepest-est?. And now that we know where that piece of data is, we can reset it if we need to:

nestedArray[2][1][0][0][0] = 'deeper still';

console.log(nestedArray[2][1][0][0][0]);

Now it logs deeper still.
Editor is loading...
Leave a Comment