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.
Hi.
For a long time since now, I have only "Beta" tasks on my dashboard, even though "Fundamentials" category is chosen and "Approved Only" in "Account settings" chosen.
Is there a possibility to restrict proposal of "Beta" tasks at all?
Thanks
This comment is hidden because it contains spoiler information about the solution
Hi karlpokus. The thing is, that in javascript literally everything is an object
That's a really nicely done. Thanks for this kind of approach, man.
Like TW80000 said, those properties are depricated. It's strongly adviced to use ES5's "Object.defineProperty" approach.
Same as emikus issue for me.
This cata's test case, which is already done for us is a mess. I was cracking my brain because of it for some 3 days, even watched a video gjcarrow provided, to understand this more deeply. When I've finaly gave up and gone for a solution - what do you know, solution is 100% the one I've provided. When I just submited my solution without running provided test - it just submitted as a correct answer.
I would punish Kata creaters for such things :). Please, do not provide default tests, if they are not correct.
Didn't know about this Object method at all :) Thanks for something new.
Clever, but works only if nums arg is null or array. I think (nums instanceof Array) check should be instead of "or". But still nice and easy.
As for my opinion - that's a Clever, but definately doesn't pretend on "Best practices", as this listing is hard to read.
You definately should specify, that element of array can be both string and number, because that's not obvious from Kata description.
I've cheated a bit by watching on test cases before finaly passing this Kata, as my submit crashed on same testcase each time.
Only from Kata test cases I've figured out, that element can be a string.
This comment is hidden because it contains spoiler information about the solution
I've written a solution, but getting this message with my test: "Test Failed: Expected: 5, instead got: NaN". Checked thrise. When tried on jsfiddle + codepen.io + locally - everything works great. Test and submit on codewars are still returning 'NaN'.
I can't post my code, so how can I solve this issue?