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 array dynamic?

0 Answers  


Is javascript free to install?

0 Answers  


What is js injection?

0 Answers  


What is Date object in JavaScript?

0 Answers  


What is the use of the ‘this’ keyword?

0 Answers  






What is use strict in javascript?

0 Answers  


What is javascript used for on iphone?

0 Answers  


What are the different types of errors supported by javascript?

0 Answers  


Are there any predefined constant provided by the browser with the key code values that can be reused?

0 Answers  


How can you create an Object in JavaScript?

0 Answers  


Write a main method that prompts the user to enter the starting population, birth and death rates, and the number of years. The input birth and death rates cannot be negative, the starting population cannot be less than 2, and the number of years greater than 0. If the user enters an invalid value, this program will prompt user to re-enter the value until a valid value has been read. When all input values are valid, call on the methods above to compute estimated population and print result.

0 Answers   Wipro,


How do you include a comment in javascript?

0 Answers  


Categories