How about 2+5+"8"?

Answers were Sorted based on User's Feedback



How about 2+5+"8"?..

Answer / kmbkrishnan

78

Is This Answer Correct ?    22 Yes 1 No

How about 2+5+"8"?..

Answer / agron

Integer + Integer + string = 78

Is This Answer Correct ?    18 Yes 1 No

How about 2+5+"8"?..

Answer / madhu

int + int + String = int + String = String
2 + 5 + "8" = 7 + "8" = "78"

Is This Answer Correct ?    16 Yes 2 No

How about 2+5+"8"?..

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

How about 2+5+"8"?..

Answer / rofiqul islam

integer + integer + String = integer + String
2 + 5 + "8" = 7+"8"

Is This Answer Correct ?    4 Yes 8 No

How about 2+5+"8"?..

Answer / nirupa

its 258 becoz string plus anything equals string...

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More JavaScript Interview Questions

What are javascript closures?when would you use them?

0 Answers  


What are the difference between javascript and jquery?

0 Answers  


What does a typeof operator do?

0 Answers  


What is the difference between == and ===? Which one would you use?

0 Answers  


What is ‘this’ keyword in JavaScript?

0 Answers  






How do you include a comment in javascript?

0 Answers  


What does two exclamation marks mean in javascript?

0 Answers  


What are javascript properties?

0 Answers  


How do I enable cookies safari?

0 Answers  


What are screen objects?

0 Answers  


how to get no of items from from weblist?

0 Answers  


What is the difference between attributes and property?

0 Answers  


Categories