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.
On Codewars, you write code (usually one or several functions) that will be tried against a test suite. Your code and the tests suite are run in the same process (you can see your code as constituting a small library). Hence, you are not supposed to define your own
main()
function: the tests suite already contains one. Thus, the compiler complains:remove the
main
function, and your code will compile.Seems like a relatively easy lvl 6, for JS :D