Ad
  • Custom User Avatar

    It seems to me that if you "love" pizza you would return the largest pizza for a like price...
    Instructions are: "If more than one size has the same price per square inch, then you should return the smallest size of that group."
    Wouldn't you want the "largest size" of that group???

  • Custom User Avatar

    Take a look at this link from MDN... Math.sign().... https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign
    Negative zero IS a valid usage! and the kata description does not say don't return a negative zero!

  • Custom User Avatar

    I think this exhibits how to write really bad code!

  • Custom User Avatar

    Shouldn't have "-0" in the tests!

  • Custom User Avatar

    NO, don't quit and don't unpublish! Keep at it and you'll do just fine!!
    Just do your best, ask questions when you need to, and don't feel intimidated...
    We all have to start somewhere... :o)

  • Custom User Avatar

    Congrats on your first kata!
    Just a few suggestions:
    Round cost to two decimal places to represent the cents part(American money only?),
    Insert commas above $999.99,
    Require a dollar sign... like above...
    No negative money... Are you paying the customer??
    Hope to see more katas from you!!

  • Custom User Avatar

    If you don't know the language, then skipt it...
    I thought is was cool to see spanish, so I gave it a go. I'm also trying to
    learn spanish as well as programming.

  • Custom User Avatar

    Should have more tests with different names to return, like "Hola " + name + ", bienvenido!"

  • Custom User Avatar

    not sure why I didn't see that... Thank you!

  • Custom User Avatar

    I think it would be nice to be able to delete tagged katas from the list (by the notification bell icon), so that after I solve them they won't still be there taking up space...

  • Custom User Avatar

    I'm getting the following error:

    TypeError: permutations(...).sort is not a function
       at begin
    at Test.it
        at /runner/frameworks/javascript/cw-2.js:241:21
    at Promise._execute
    at Promise._resolveFromExecutor
    at new Promise
    at Test.describe
            
        at Object.exports.runInThisContext
    

    I pass the first set of tests, but when submitting, I get the above error.
    After hitting the submit button, it shows me passing all those tests also! Then returns the error...
    I already sorted the array before returning the solution...

    Any help getting past the submit stage would be appreciated...