loading...

re: 10 JavaScript array methods you should know VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hey! Thanks for your article 😃 I knew most of them, except the last one. By the way, I was wondering : in which case : const nums = Array.of(1, 2, ...
 

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)

Code of Conduct Report abuse