loading...

re: What is the oddest JavaScript behavior? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: '11' + 1 // 111 '11' - 1 // 10
 

I love this. It just made me think about something pretty interesting... If you think of this in terms of what it actually could mean for a mathematical function, then the string appendage (regarding integers) could be thought of as its own math operation too - in a very round about way.

 

Absolutely, and not even in a very roundabout way, you're pretty spot on :)

Code of Conduct Report abuse