JS Interview - Array Indexes - Question 24

preview_player
Показать описание
This episode examines how JavaScript handles arrays with missing indexes.

Рекомендации по теме
Комментарии
Автор

wow, you just blew my mind. another hidden feature in JS!

tanercoder
Автор

Thank you for the valuable information! 
I've noticed that if you explicitly define an array with undefined's (like const array = [undefined, undefined] ) then .forEach method will work. JavaScript is so JavaScript :)

heyiamigor
Автор

Interview tomorrow morning :-))) thanks for providing these confidence boosting stuff <3

zaifajs
Автор

i knew the array had empty values but i didnt know how they would be printed xd

hiro