You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry if this is not the proper place to ask this but...
I'm using RunJS to play with a line of code, but I'm getting an error that comes from trying to use the spread operator, so not sure what I'm doing wrong.
Shouldn't this work? [...Array(10).keys()]
I just get SyntaxError: Unexpected token (...:1) so it's not accepting the Spread Operator. Is it a matter of the version of the language I'm using, and if so, how do I change that?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Sorry if this is not the proper place to ask this but...
I'm using RunJS to play with a line of code, but I'm getting an error that comes from trying to use the spread operator, so not sure what I'm doing wrong.
Shouldn't this work?
[...Array(10).keys()]I just get
SyntaxError: Unexpected token (...:1)so it's not accepting the Spread Operator. Is it a matter of the version of the language I'm using, and if so, how do I change that?All reactions