Preview:
let data = [10, 42, 52];
console.log(data.length);
>> 3
//配列の最後のインデックスは 2 ですので(インデックスは 0 から始まります)、 配列の length プロパティは 3 を返します。結果として length プロパティを参照すると配列に含まれる要素の数となります。
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter