DEV Community

Discussion on: 10 JavaScript array methods you should know

Collapse
 
warix3 profile image
Warix3

He asked about [1, 2, 3, 4, 5, 6] and not Array(7), is it the same?

Thread Thread
 
tunaxor profile image
Angel Daniel Munoz Gonzalez

it is essentially the same, I just pointed out what is a better comparison case with quote from the mdn docs