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.
This comment is hidden because it contains spoiler information about the solution
I like this
Seems clean but, I wonder how to do error handling (Unrecognised operation, type checking values and division by 0) in this cleanly too!
i like it very much, thanks
When I ran "Submit" the first time, it came back with 100 fails.
I added some console.logs and re-ran it, it came back all green.
I removed the console.logs and got another 100 fails.
I added the console.logs back in and it completely submitted, without giving me a chance to refactor.
Which is to say, I think the platform itself may be having issues.
Well...I don't know what the name of this trick?
There're already numerous
O(n)
solutions to the original kata which can be trivially copied from there.perfect
Add
console.info(prev/Math.pow(2,32), prev/Math.pow(2,32) * 26 + 65)
in the middle of the the iife's random function, then run it and see if you can figure out what's happening. ;-)This comment is hidden because it contains spoiler information about the solution
For example, how exactly does the regular expression test truthy for the smiley ";)"?
Nice and clean solution! I'm only slightly familiar with regular expressions, but I am trying to improve my understanding of it. Would you mind explaining the "?" between the valid noses and the valid mouths in your variable titled smileyRegExp? I've seen others describe it as a lookahead, but its purpose and effect are still a bit unclear to me. Thank you for your time ^.^
I don't think
3.14159
is either an even number or an odd number, since it's not even an integer.not an issue.
Your suggestion is accepted and included in this kata.
Loading more items...