• ###### Muhamad Nabilacommented on "Opposite number" javascript solution

OMG so sad of me.... this is soo easy

Awesome

while :)

• ###### duyk16commented on "Product of consecutive Fib numbers" javascript solution

Am array containning 2 elemet is great. Awesome

• ###### flewkcommented on "Product of consecutive Fib numbers" javascript solution

It is unfortunate that none of the top solutions use algebra to solve this, but all choose a brute force algorithm...

It is definitely a byproduct of the kata requiring the next highest pair even for false results.

• ###### justinddanielcommented on "Cat and Mouse - Easy Version" javascript solution

This exposes a weakness in the tests. The logic is actually incorrect as other commenters have noted.

• ###### Joking3000commented on "Product of consecutive Fib numbers" javascript solution

Awesome,
I had so much going on in mine, wrote out a whole function to calculate fibs,
Then built an array in the main function to prevent it from timing out on longer calculations.
But this just solves it in such a consise and easy to understand way.
Kudos

• ###### Artsem Makarovcommented on "The highest profit wins!" javascript solution

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

nice

Thank you!

• ###### timberguscommented on "Product of consecutive Fib numbers" javascript solution

The array trick to solve the variable assignation is great.

• ###### jpacacommented on "The highest profit wins!" javascript solution

Good solution but according to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max:
"However, both spread (...) and apply will either fail or return the wrong result if the array has too many elements, because they try to pass the array elements as function parameters..."

So I didn't encourage to do it that way...still cool tho :)

• ###### Chrono79commented on "Opposite number" javascript solution

Sigh, spoilers...

• ###### cdurflingercommented on "Opposite number" javascript solution

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