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 |
What is the dollar sign in javascript?
Define unescape() function?
Name some of the Javascript frameworks?
A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a java program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.
Write a program that inputs a 5-digit integer from the keyboard and prints if the input number is a palindrome or not. A palindrome is a number which has the same digit from either end.
Which built-in method returns the character at the specified index?
What is the difference between childNode and children?
What are the various functional components in javascript?
What is the requirement of debugging in javascript?
how to disable source option at view menu in browser like internet explorer...mozilla...etc..pls help me...
What are JavaScript Cookies?
How to accessing elements using javascript?