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.
Yes. This code returns a boolean value and not a string.
Implicit returns in arrow functions are dependant on the lack of a body block, not being one-line.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions#Function_body
Also arrow functions context differ from regular function expressions and declerations. They follow Lexical scope. I recomend reasearching this difference and when it is better to use an arrow funciton over other ways of writing it. It makes a difference when using the 'this' key word.
the most common use is just to make things shorter. Arrow functions automatically return without specifying 'return' if the function is on one line.
Not an issue
that notation is for ECMAScript 6. We should all use it.
perhaps because CW test method is updated from == to === ;-)
I retrained on this kata and copy/pasted this solution. It doesn't work unless I put the boolean values in quotes.
Please forgive my strange thoughts, I just want to know what your agent have stolen ;-)
I agree, I've enjoyed all of your kata's but this one. Decrypting was challenging, but do-able; getting stuck on Answer1, Answer 2, Answer 3 thing was very frustrating. Your updated explanation just confused me more for a long time.
It's "There is no portal here ... sending you back to Aha!". I guess you should write feature requests on Github now
There's no published list, but you can vote to request one on the Codewars ideas portal here. Sign up is instant once you put in your email and name. I listed the privileges that I am aware of over there, up to 3000 honor.
Don't forget to vote!
@Javatlacati
The fact that I'm having to reread the question multiple times is a start. You mention static methods are needed, but you provide no explanation. The katas on Codewars are not designed for a user to put a short snippet of "print hello world oh maybe use static... might be needed". Instead... for each language you build for you're supposed to define a little bit of what a static is. Provide some helpful resources. Yes. I learned that python actually had a static method decorator, but I have no idea why it was necessary for this test to pass. My function definition did exactly what the rules asked. If your intention is to cause difficulty through obfuscation, you're doing a great job at it.
Did the Javascript version. Honestly it isn't exactly clear right away what you're wanting. I'm not a beginner, but I had to read these comments to make sure I was approaching the right answer. I would recommend some sort of information since this is an 8kyu task.
That is interesting... Because I entered in what I saw and continued to get it wrong and it changed every time. When I added code to regex the answer it finally worked correctly. It's great it is a joke, but I feel it takes away from this problem and strays from the training you are attempting. I sadly won't be able to vote positively until that factor is removed.
In fact, the user needs to do is just the first part: the correct decoding. The second part (three questions) is just an interesting joke, and users only need to honestly answer what they see and don't need any code.
Loading more items...