Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Mmm, I asked a friend about it and he explained Babel to me... and also compelled me to make a blood pact, ensuring that I use strict mode and Google Canary til the end of days.
Thanks for the kind answer!
What matt c meant is that on CodeWars, the code you submit is compiled on the server side. However, when you paste in your browser's console the code, that gets executed at the client side by your browser, which doesn't support this feature yet. It will in the near future ;)
Nah, I can even copy and paste this directly into the browser console and get the same syntax error. I don't have any good guesses as to why.
The code is handled server side with the Babel compiler I believe so your browser shouldn't be the problem maybe it's your syntax?
Thanks for the quick reply and the good resource!!
I'm surprised it won't work for me, though, considering I'm running the latest Chrome. Next release I guess would handle ECMAScript6 things a bit better.
The
=>
is an arrow function introduced in the new JS ES6.HERE is some documentation on the new Arrow functions and how they work :)
Can somebody explain the => to me? When I try plugging it into a console, it gives me SyntaxError: Unexpected Token =>