How about 2+5+"8"?

Answer Posted / gp

"2"+4+6 = 246
but
2+4+"6" = 66

also
"2"+4+"6" = 246
"2"+4+6+8 = 2468

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are anonymous functions in Javascript?

536


What is a good javascript editor?

499


Name some of the built-in methods and the values returned by them.

544


How can you read properties of an Object in JavaScript?

529


Can you explain the difference between == and ===?

496






Does javascript support foreach loop?

510


What is object freeze?

486


How to trigger a postback on an updatepanel from javascript?

489


What is js injection?

479


Explain the typeof operator?

541


Is javascript safe to download?

480


What is trim whitespace google sheets?

491


How to convert json string to object?

557


What does it mean in javascript?

498


Define unescape() and escape() functions?

499