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.
They're not objects, they're strings. Literally a string that looks like
{'key' : 'value'}
.Watch out for stealthy whitespaces.
You can copy the whole "expected: ..., instead got:..." line to a text editor, align and compare both sides char by char. That usually helps me finding the difference between two outputs.
This comment is hidden because it contains spoiler information about the solution
Please accept my php translation :)
You should use keyword
return
instead ofconsole.log
.console.log()
can only print message to the screen ;-)This comment is hidden because it contains spoiler information about the solution