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 |
How to set the cursor to wait in JavaScript?
What is triple dot in javascript?
What is the difference between == and ===? Which one would you use?
What is the role of break and continue statements?
What is null in javascript?
How to associate functions with objects using javascript?
What is the use of history object?
What is emotional closure?
How to detect the operating system on the client machine?
Can we create buttons in JavaScript ? if yes how? pls provide sample code... Thanks in advance.....
What is the use of document object?
Is javascript easier than java?