πŸ“Š JavaScript
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>
  • (A) 9
  • (B) 81
  • (C) Error
  • (D) 0
πŸ’¬ Discuss
βœ… Correct Answer: (A) 9

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
250
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
87%
Success Rate