• ###### Laalu07commented on "Highest and Lowest" javascript solution

ReferenceError: Numbers is not defined

• ###### o2001commented on "Sum of Odd Cubed Numbers" kata

The returning undefined aspect of this Kata is a hindrance and it's problematic tbh

cool

• ###### Hassakiicommented on "Sum of Odd Cubed Numbers" kata

It returns 0, as it is the sum of cubed odd numbers, where -3 cubed is -27 so it is infact:

-3 * -3 * -3 = -27 and 3 * 3 * 3 = 27 therefore -27 + 27 = 0

• ###### SS-Stefanov1commented on "Sum of Odd Cubed Numbers" kata

Why would this test suppose to return 0 ?

Test.assertEquals(cubeOdd([-3,-2,2,3]), 0);

3 * 3 * 3 = 27?

• ###### ShuryginDMcreated an issue for "Sum of Odd Cubed Numbers" kata

Find the sum of the odd numbers within an array, after cubing the initial integers

but

The function should return undefined/None/nil/NULL if any of the values aren't numbers

so, what if number is float (not equal to its integer part)? It is a number, but it is not an odd number (even or odd are defined only for integer)
Seems like, text might be
"The function should return undefined/None/nil/NULL if any of the values aren't integers"
and there must be any test with float (at least there are none of those in python version)

• ###### nukestarmastercommented on "Highest and Lowest" javascript solution

For JavaScript, no. For TypeScript, yes.

• ###### nukestarmastercommented on "Highest and Lowest" javascript solution

It changes the elements of the array from strings to numbers, it isn't neccessary in JS as JS recognizes numberlike strings as numbers for functions that take numbers.

• ###### ILLUSORYcommented on "Highest and Lowest" javascript solution

Hm I tried to put this with null instead of 0, anyone know why this works over null?

• ###### Chrono79commented on "Highest and Lowest" javascript solution

Use spoiler flag next time, please.

• ###### desojocommented on "Highest and Lowest" javascript solution

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

• ###### Chrono79commented on "String repeat" javascript solution

The name is `repeatStr`. It's called arrow function expression. It's missing `const` or `let` tho.

• ###### Rofortcommented on "String repeat" javascript solution

how does it work with no function name initializated ?

• ###### emmaboyniccommented on "Sum of Odd Cubed Numbers" javascript solution

it seems my solution will come up soon

• ###### michaelsatumbacommented on "Highest and Lowest" javascript solution

Number in map turns every element in numbers array to a number.