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

How to set the cursor to wait in JavaScript?

0 Answers  


What is triple dot in javascript?

0 Answers  


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

0 Answers  


What is the role of break and continue statements?

0 Answers  


What is null in javascript?

0 Answers  






How to associate functions with objects using javascript?

0 Answers  


What is the use of history object?

0 Answers  


What is emotional closure?

0 Answers  


How to detect the operating system on the client machine?

0 Answers  


Can we create buttons in JavaScript ? if yes how? pls provide sample code... Thanks in advance.....

1 Answers   HCL,


What is the use of document object?

0 Answers  


Is javascript easier than java?

0 Answers  


Categories