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

Is javascript pure object oriented?

0 Answers  


How to convert “20” to number in javascript?

0 Answers  


What is the use of a boolean object in javascript?

0 Answers  


How to get an element by class in javascript ?

0 Answers  


How much does a javascript developer make?

0 Answers  






Can you tell me how to send email using javascript?

2 Answers  


What is the use of Void(0)?

0 Answers  


How is javascript different from java?

0 Answers  


How do I add javascript to chrome?

0 Answers  


Explain the difference between java and javascript.

0 Answers  


What is unescape() function?

0 Answers  


What is a function callback?

0 Answers  


Categories