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>  
  • (A) 7
  • (B) -7.25
  • (C) 25
  • (D) -7
πŸ’¬ Discuss
βœ… Correct Answer: (C) 25

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
246
Total Visits
πŸ“½οΈ
5 y ago
Published
πŸŽ–οΈ
Akshay Kulkarni
Publisher
πŸ“ˆ
93%
Success Rate