DEV Community

Discussion on: 10 JavaScript array methods you should know

Collapse
 
wlievens profile image
Wouter Lievens • Edited

It's the same, but one is a function whereas the other is a syntactical form. You could have a situation where you pass it as a parameter or in a variable, i.e.


f = Array.of
...
a = f(1,2,3)