A
Q. Which one of the following is correct output for the following given JavaScript code:
Code:
<p id="demo"></p>
<script>
functionourFunction()
{
document.getElementById("demo").innerHTML=Math.abs(-7.25);
}
</script>
<script>
functionourFunction()
{
document.getElementById("demo").innerHTML=Math.abs(-7.25);
}
</script>
- Correct Answer - Option(C)
- Views: 21
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.