Hacker News new | past | comments | ask | show | jobs | submit login

...wait. Why would the uppercase of '1' be '11'? It would just be '1'.

I had to reread it a few times to parse it. Its result of "adding" the uppercase of 1 that should be 11, not the uppercase itself.

In other words, the result of "makeUppercase" should be a string, not a number.

I see it now.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact