• ###### fadzrinmaducommented on "Convert a Number to a String!" javascript solution

wow, that's super weird

• ###### lvszcommented on "Convert a Number to a String!" javascript solution

Like all Javascript functions, String is a first class member, so if you assign it to a variable without applying it (i.e. not placing any parentheses behind it), calling that variable using parentheses and arguments will call the function assigned to it.

A more useful property of this can be seen when using functions like `map`, e.g. `[1,2,3].map(x => String(x))` can be shortened to just `[1,2,3].map(String)`

super

• ###### anujkumarshettycommented on "Convert a Number to a String!" javascript solution

That's brilliant.

• ###### Seperocommented on "Make a spiral" javascript solution

I wish I could master recursion, but it always comes back to bite me. Very impressive code, but unfortunately near impossible for most people to read.

• ###### imhocommented on "Convert a Number to a String!" javascript solution

can anyone explain how this works? :) TY!

• ###### YhvrWasTakencommented on "Convert a Number to a String!" javascript solution

Oh my, that is very clever! I'm surprised it works!

I like it!

Wow

• ###### ifgeny87commented on "Largest 5 digit number in a series" javascript solution

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

• ###### metalimcommented on "Square sums" javascript solution

Nice solution! Can easily go to 3000, with large delays for 1118 and 1202. Also 2375 has just a slight delay.

• ###### jacobmgevanscommented on "Largest 5 digit number in a series" javascript solution

Damn, I forgot about substr. Well Done!

• ###### jmetchercommented on "Largest 5 digit number in a series" javascript solution

Agreed. Pure recursion is way too easy to blow up with a big input.

• ###### myjinxin2015commented on "Three Dots--Play game Series #8 " kata

I'm glad to see the first solve appears. Happy coding `^_^`