Consider the following code snippet
function f() {};
The ab
Home | Discussion Forum
Consider the following code snippet
function f() {};
The above prototype represents a
Function f
A custom constructor
Prototype of a function
Not valid
Answer : B
View More Related Question
1) What will happen if a return statement does not have an associated expression?
It returns the value 0
It returns the value 0
It returns the undefined value
None of the mentioned
View Answer
2) Which is an equivalent code to invoke a function m of class o that expects two arguments x and y?
3) Consider the following code snippet
function f() {};
The above prototype represents a
4) The function definitions in JavaScript begins with
Identifier and Parantheses
Return type and Identifier
Return type, Function keyword, Identifier and Parantheses
Identifier and Return type
View Answer
5) 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?
Sum of square of a and b
Square of sum of a and b
Sum of a and b square
None of the mentioned
View Answer