A
Q. What will be the output for the following code snippet?
Code:
<p id="example"></p>
<script>
function Func()
{
document.getElementById("example").innerHTML=Math.sqrt(81);
}
</script>
<script>
function Func()
{
document.getElementById("example").innerHTML=Math.sqrt(81);
}
</script>
- Correct Answer - Option(A)
- Views: 15
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.