DEV Community

loading...

Discussion on: Daily Challenge #177 - Supersize Me

Collapse
craigmc08 profile image
Craig McIlwrath

The argument to the unary plus operator is a string. The + is a very concise method of converting a string to a number, in this situation.

Thread Thread
georgewl profile image
George W Langham

Ah, I totes prefer the readability over conciseness approach