What will be the correct output of the following JavaScript code?
<p id="demo"></p> <script> functionmyFunc() { document.getElementById("demo").innerHTML=Math.asinh(1); } </script>
<p id="demo"></p>
<script>
functionmyFunc()
{
document.getElementById("demo").innerHTML=Math.asinh(1);
}
</script>
a) 0.80
b) 0.78
c) 0.50
d) 0.88
Answer: D
Reason: The "asinh()" method used in the given code is a predefined method available in the math's library of the JavaScript which returns the hyperbolic arcsine of a number.