• ###### SS-Stefanov1commented on "Invert values" javascript solution

If they want to complicate their lives as well.. xD

• ###### o2001commented on "Invert values" javascript solution

Please try to mark comments like this as spoiler because it shows up on the homepage and might spoil (part of) the answer for some people :)

• ###### SS-Stefanov1commented on "Invert values" javascript solution

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

• ###### Leonidas2022commented on "Invert values" javascript solution

Where can I keep my 9 code lines...great work!

• ###### rowcasedcommented on "Invert values" javascript solution

even the "basic tests" include:

``````    assert.deepEqual(norm(invert([])), []);
assert.deepEqual(norm(invert([0])), [0]);
``````

and the solution in question passes...

• ###### AmonMunyaicommented on "Invert values" javascript solution

is checking for 0 really necessary, considering that multiplying by 0 always results in 0?

• ###### Omar-Elmoezcommented on "Invert values" javascript solution

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

• ###### cmeyerSEcommented on "Invert values" javascript solution

awesome work!

• ###### ScootDaBuddahcommented on "Invert values" javascript solution

i was so confused when i didnt put the const before invert because u usally dont have too lol, i was searching for help n now i wanna kys XD it was really tht simple just the const SMH

• ###### chemicalRattcommented on "Invert values" javascript solution

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

Gorgeous!

No way

• ###### Koethancommented on "Invert values" javascript solution

lol, its a one liner!! i gotta study this!

• ###### rsschool_5d1eb774bfb5e4dbcommented on "Invert values" javascript solution

That's right, it's so easy!

• ###### Sergey7709commented on "Invert values" javascript solution

Surprisingly effective!