Ad
  • Custom User Avatar

    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

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Hi karlpokus. The thing is, that in javascript literally everything is an object

  • Custom User Avatar

    That's a really nicely done. Thanks for this kind of approach, man.

  • Custom User Avatar

    Like TW80000 said, those properties are depricated. It's strongly adviced to use ES5's "Object.defineProperty" approach.

  • Custom User Avatar

    Same as emikus issue for me.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Didn't know about this Object method at all :) Thanks for something new.

  • Custom User Avatar

    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.

  • Custom User Avatar

    As for my opinion - that's a Clever, but definately doesn't pretend on "Best practices", as this listing is hard to read.

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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?