Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following JavaScript statement?
var grand_Total=eval(“10*10+5”);

What will be the output of the following JavaScript statement?
var grand_Total=eval(“10*10+5”);
a) 10*10+5
b) 105 as a string
c) 105 as an integer value
d) Exception is thrown

Answer: c
Explanation: eval() is a function property of the global object. The argument of the eval() function is a string. If the string represents an expression, eval() evaluates the expression. If the argument represents one or more JavaScript statements, eval() evaluates the statements.

Join The Discussion