Consider the following code snippet
function hypotenuse(a, b)
{
Home | Discussion Forum
{
Consider the following code snippet
function hypotenuse(a, b)
{
function square(x)
{
return x*x;
}
return Math.sqrt(square(a) + square(b));
}
What does the above code result?
Answer : A
View More Related Question
1) For the below mentioned code snippet:
var o = new Object();
The equivalent statement is:
2) Which of the following is the correct code for invoking a function without this keyword at all, and also too determine whether the strict mode is in effect?
View Answer
3) If you have a function f and an object o, you can define a method named m of o with
4) When does the function name become optional in JavaScript?
View Answer
5) Consider the following code snippet :
var grand_Total=eval("10*10+5");
The output for the above statement would be :