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.
this issue is not reproducible.
works fine for this kata
Good
Está bien pero podrias directamente cambiar el operador a negativo :D
I had the same solution but without the '+' and of course got a string returned. Had to google this unary plus and learned something really cool and valuable today thanks to you. Thanks!
Nice
I couldn't even think about
get info()
.Guess I have a long way to go.
What mattc said, plus I find it easier to mentally interpret a template string than a concatenated string.
Template Strings, Well the template strings get's evaluated to
this.name + 's age is ' + this.age;
anyway. The reason I used it was because this kata is about the new JS2015 standard which is where the Template Strings were introduced so I personally found them appropriate to use.${this.name}s age is ${this.age}
;What do you call this notation, and why use it over:
this.name + 's age is ' + this.age;
I believe many new rubyist will find this a good exercise to learn about indices, it was a nice refresher for me.
Please don't use coloured text. It might look okay on the default dark theme, but it's unreadable on the light theme.
This comment is hidden because it contains spoiler information about the solution
you can do "var hw = function() {...}; var helloWorld = hw;"
Raised on the support system... I'll comment here when I get an update. You can get around it though ;)
Seems to be a weird codewars issue itself, let me see if I can work out who to raise it with!
If you do "var helloWorld = function() {}" it becomes "var helloWorld = function helloWorld()" when you run the tests... but I have no idea why.
Loading more items...