How about 2+5+"8"?
Answers were Sorted based on User's Feedback
Answer / madhu
int + int + String = int + String = String
2 + 5 + "8" = 7 + "8" = "78"
Is This Answer Correct ? | 16 Yes | 2 No |
Answer / 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 |
Answer / rofiqul islam
integer + integer + String = integer + String
2 + 5 + "8" = 7+"8"
Is This Answer Correct ? | 4 Yes | 8 No |
Answer / nirupa
its 258 becoz string plus anything equals string...
Is This Answer Correct ? | 1 Yes | 10 No |
Is javascript pure object oriented?
How to convert “20” to number in javascript?
What is the use of a boolean object in javascript?
How to get an element by class in javascript ?
How much does a javascript developer make?
Can you tell me how to send email using javascript?
What is the use of Void(0)?
How is javascript different from java?
How do I add javascript to chrome?
Explain the difference between java and javascript.
What is unescape() function?
What is a function callback?