Ad
  • Custom User Avatar

    Pls help I've done a character count elsewhere it shows 245, the test says 280? I also sneakily tried assigning strings to vars at one point, which brought the actual count down further, but in the test it went even higher! confused..

  • Custom User Avatar

    Check out ternary operators :)

  • Custom User Avatar

    Please add this information into description. It can be confusing.

  • Custom User Avatar

    Bravo Peter \m/

  • Default User Avatar

    is there a way to do this in fewer than 250 chars without using regex? My only exposure to JS is completing a Codecademy course and some level 8 and level 7 katas. Based on my limited experience, I instinctively reached for a 'switch' statement, but that puts me around 350 chars, even after smushing my code together as much as possible. I suspect that I'm missing a more elegant solution, but I don't know regular expressions.

  • Custom User Avatar

    No Worries Matt. I have managed (finally) to get my test cases properly random!

  • Custom User Avatar

    I've sorted the test cases! They are now officially random. Thanks for the support myjinxin.

  • Custom User Avatar

    I've done it!! The test are now properly random. THANK YOU for your patience and help!

  • Custom User Avatar

    Sorry I was away for awhile I haven't got to adding random tests and as it's now published I assume you have written random test cases :)

  • Custom User Avatar

    OH my bad, it should be all in lowercase, THANK!!

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    If you use 'letorconst` or other ES6 features, your code will get longer due to the transformation by babel.

  • Custom User Avatar

    I post this issue because your random test is not really "random", all of them are invaild bread, could you put some "good bread" in your "random" test?

  • Loading more items...