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

name any two javascript functions which are used to convert nonnumeric values into numbers?

1 Answers  


Advantages & Disadvavtages of Java Script? Advantages & Disadvantages of CGI Scripting? Structure of Java Script? Commands of Java Script? HTML Basic Reviews?

3 Answers  


What is null in javascript?

1 Answers  


How can you read properties of an Object in JavaScript?

1 Answers  


What does "1"+2+3 evaluate to?

1 Answers  


What is the difference between a web-garden and a web-farm?

1 Answers  


What is called variable?

1 Answers  


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

1 Answers  


What are the variable naming conventions in javascript?

1 Answers  


What is built in function in javascript?

1 Answers  


What is javascript ‘strict mode’?

1 Answers  


What looping structures are there in JavaScript?

2 Answers   Satyam,


Categories