What is the output of the below code snippet <script type="text/javascript"> amt=55+"55"; document.write(amt); </script>
Answer options
A
True
B
False
Correct answer: True
Explanation
In JavaScript, when a number is added to a string using +, type coercion converts the number to a string and performs concatenation. So 55 + '55' equals '5555', not 110.