Ad
  • Custom User Avatar

    I believe Array is a class, and when passed a number like this, it returns an empty array of size n + 1 (empty meaning, each element is undefined).

    Example:

    a = Array(3)
    [ , , ]
    a.length
    3
    a[0]
    undefined
    a.join('hi')
    'hihi'