0
Var array=[1,2,3,4]; console.log(typeof ...array);
Guys why I got error it's a spread operator and spread operator return an array element???
5 Answers
0
It should be
var array=[1,2,3,4];
console.log(typeof(array));
console: object
0
What does spread operator return??
0
Aniket Ganguly
Yes it returns array element but you can't check typeof like that even cannot assign to another variable.
0
But why it's return an element đ¤đ¤
0
It doesn't return an element it returns all elements to be used for functions