A
Q. What will be the output of the following JavaScript code snippet?
Code:
<p id="demo"></p>
var txt1 = "mcqbuddy_";
var txt2 = "Javascriptmcq";
document.getElementById("demo").innerHTML = txt1 + txt2;
var txt1 = "mcqbuddy_";
var txt2 = "Javascriptmcq";
document.getElementById("demo").innerHTML = txt1 + txt2;
- Correct Answer - Option(D)
- Views: 23
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.