Consider the following code snippet :
var grand_Total=eval("10*10+5");
The output for the above statement would be :
10*10+5
105 as a string
105 as an integer value
Exception is thrown
Answer : C
View More Related Question
1) 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
2) Consider the following code snippet :
var tensquared = (function(x)
{
return x*x;
}
(10));
Will the above code work ?
3) What is the purpose of a return statement in a function?
Returns the value and continues executing rest of the statements, if any
Returns the value and stops the program
Returns the value and stops executing the function
Stops executing the function and returns the value
View Answer
4) When does the function name become optional in JavaScript?
When the function is defined as a looping statement
When the function is defined as expressions
When the function is predefined
All of the mentioned
View Answer
5) Consider the following code snippet :
var grand_Total=eval("10*10+5");
The output for the above statement would be :