Learn JavaScript on the Now Platform: Lesson 22 - Introduction to arrays

preview_player
Показать описание
Lesson 22 introduces you to the concept of arrays. Arrays are a great way to keep a list of the same data type (integer, string, etc) in memory and address them as one unit or individually.

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

Hello Chuck! Thank you for this series. I do not think however that saying that arrays are complex data types that store elements of the same type in a list format is accurate because arrays can store elements of different types such as single elements, other arrays(sub-arrays), objects.... all of these can be stored in a single array variable. It would be wonderful and interesting to hear your opinion on this. thanks

baskinginhisgrace
Автор

Hi Chuck fantastic series, loving content and your delivery - thanks and happy new year. My question is regarding lines 9-14 - why is it better to store the length in var len?

yasseralkindi
Автор

Howdy Chuck,

when i tried the 'typeof' on a array. it showed me the data type as Object. I thought it would be shown as Array. Any idea why is it so ?

var list = [1, 3, 5];

gs.info (typeof list);

rovanmonteiro
welcome to shbcf.ru