","text":"What is the output of the below code snippet ","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Correct answer: True. 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.","url":"https://www.primerdumps.in/q/what-is-the-output-of-the-below-code-snippet-amt-55-55"}}}
Web Technology
Accenture PrimereasyWeb TechnologyJavascript

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.

Related Accenture Web Technology questions

Practice more Accenture Web Technology questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.