Javascript quiz

What is the result?

#jsquiz #javascript #jsdev #programming #reactjs #nodejs #vuejs

The bad behavior of the past becomes the expected behavior 😂
---
RT @getify
#jsquiz without trying this code, what will it print?

let a = [];
a[3] = 10;
a[5] = 20;
for (let x of a) {
console.log(x);
}
// ??
https://twitter.com/getify/status/1201203738129641473

getify on Twitter

“#jsquiz without trying this code, what will it print? let a = []; a[3] = 10; a[5] = 20; for (let x of a) { console.log(x); } // ??”

Twitter