• ###### Chrono79commented on "Simple multiplication" javascript solution

@txhawg, n is not the divisor there, so, there is no division by 0 either. 0 is an even number.

• ###### txhawgcommented on "Simple multiplication" javascript solution

@mnafrps - % is the remainder operand, which performs division. Division by zero is undefined, thus my question. Also the question of is 0 even or odd or neither, since it has no value?

• ###### hobovskycommented on "Simple multiplication" javascript solution

even if 0 % 2 = 2 (which yields "true")

`console.info(0%2 == 2); // outputs false`

• ###### mnafrpscommented on "Simple multiplication" javascript solution

Yes. 0 times any number equals 0, so even if 0 % 2 = 2 (which yields "true") and that would mistakenly make 0 an odd number, it doesn't matter because 9 * 0 = 0 and 8 * 0 = 0. The result is the same.

• ###### txhawgcommented on "Simple multiplication" javascript solution

Will this work if n is zero?

• ###### Chrono79commented on "Sum of positive" javascript solution

Please use spoiler flag next time.

• ###### mhkroskacommented on "Sum of positive" javascript solution

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

• ###### nomennesciocreated an issue for "Password System" kata

For C: horrible description that does not match the C function prototype; there is no binary grid.

• ###### Miladepourcommented on "Simple multiplication" javascript solution

Easy to solve :D

• ###### Chrono79commented on "Simple multiplication" javascript solution

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

• ###### michaelsatumbacommented on "Simple multiplication" javascript solution

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

Retired.

amazing !!

smart!!!

• ###### Jukemcommented on "Sum of positive" javascript solution

Because there is an inital value passed to the reduce function, a will be 0 and b will be the first element of the array