What will be the output of the following JavaScript code?
A. Comment
B. new text
C. Error
D. Undefined
Code:
function showcommentform()
{
var data=”new text”
document.getElementById('mylocation').innerHTML=data;
}
<form name="myForm">
<input type="button" value="comment" onclick="showcommentform()">
<div id="mylocation"></div>
</form>
B. new text
C. Error
D. Undefined