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 we can add title of the page by javascript?
Define unescape() function?
What is local scope in javascript?
Can you call a Java Applet using a JavaScript function?
What is primitive data type in javascript?
find the common prime divisors of two given numbers
What is the use of spread operator?
How do you write an if statement in javascript?
What is Javascript namespacing? How and where is it used?
What is unobtrusive javascript? How to add behavior to an element using javascript?
Explain the working of timers in JavaScript? Also elucidate the drawbacks of using the timer, if any?
List some features of javascript.