Array vs Array-Like Objects | Javascript | Frontend talks ☕

Опубликовано: 04 Май 2024
на канале: Rohit Kumar
86
4

Array: Arrays are objects which can contain elements in non-negative zero-indexed elements with a length property .

Array-Like Objects: Being able to provide the ability to access elements as integer indexes and having length property, the structure is still an object, since behind the scene the indexes are actually integer-al 'keys' of that object.

In this video, I demonstrated how we can use Array instance methods, for eg, map, reduce, etc, with Array-like objects. There are number of ways of achieving this, but in this video Function.prototype.call() method is used to demonstrate.

Ref:
1. https://developer.mozilla.org/en-US/d...
2. https://developer.mozilla.org/en-US/d...
3. https://developer.mozilla.org/en-US/d...

Chapters:
00:00 Introduction to array
01:22 Introduction to 'arguments' object
05:32 Introduction to Function.prototype.call
11:36 The 'problem'
16:08 Conclusion

Stay Connected:
LinkedIn:   / 07rohitkumar  
Buy me a coffee: https://www.buymeacoffee.com/07rohitpd

#javascript #interview #frontend #frontenddeveloper #discussion


На этой странице сайта вы можете посмотреть видео онлайн Array vs Array-Like Objects | Javascript | Frontend talks ☕ длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Rohit Kumar 04 Май 2024, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 86 раз и оно понравилось 4 зрителям. Приятного просмотра!