Q. What will be the correct output of the following JavaScript code?
Code:<p id="demo"></p>
<script>
functionmyFunc()
{
document.getElementById("demo").innerHTML=Math.asinh(1);
}
</script>
Dear candidates you will find MCQ questions of JavaScript here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
<p id="demo"></p>
<script>
functionmyFunc()
{
document.getElementById("demo").innerHTML=Math.asinh(1);
}
</script>
vartensquared=(function(x){return x*x;}(10));
var string2Num=parseInt("123abc");
var o =newObject();
var x =counter(), y = counter(); x.count() y.count() x.reset() x.count() y.count()
var addition=newFunction("number1","number2","return number1+number2");
document.writeln(addition(10,5));
var scope ="global scope";
functioncheckingscope()
{
var scope ="local scope";
functionf()
{
return scope;
}
return f;
}