What is the result of below given line of code in java script? 5+4+'7'?
Answer / Amit Kumar Ahirwar
"The result will be 16 (because JavaScript concatenates strings and numbers, so '7' is considered as a string here. To fix this, you need to wrap the number 7 in quotes: 5+4+'7' => 5+4+'7' => 11"
| Is This Answer Correct ? | 0 Yes | 0 No |
java is pure object oriented or not?
How to convert “20” to number in javascript?
What’s a way to append a value to an array?
Explain the for-in loop?
What are the javascript data types?
What is null javascript?
wap to accept an int array frm the user and print the lucky nos.
How to delete a cookie using javascript?
Can you use javascript to hack?
How onclick works in javascript?
What is the data type of variables of in javascript?
How to import all exports of a file as an object.