How about 2+5+"8"?
Answers were Sorted based on User's Feedback
Answer / madhu
int + int + String = int + String = String
2 + 5 + "8" = 7 + "8" = "78"
Is This Answer Correct ? | 16 Yes | 2 No |
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 |
Answer / rofiqul islam
integer + integer + String = integer + String
2 + 5 + "8" = 7+"8"
Is This Answer Correct ? | 4 Yes | 8 No |
Answer / nirupa
its 258 becoz string plus anything equals string...
Is This Answer Correct ? | 1 Yes | 10 No |
Is javascript array dynamic?
Is javascript free to install?
What is js injection?
What is Date object in JavaScript?
What is the use of the ‘this’ keyword?
What is use strict in javascript?
What is javascript used for on iphone?
What are the different types of errors supported by javascript?
Are there any predefined constant provided by the browser with the key code values that can be reused?
How can you create an Object in JavaScript?
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.
How do you include a comment in javascript?