adplus-dvertising
frame-decoration

Question

Consider the following code snippet :

var grand_Total=eval("10*10+5");

The output for the above statement would be :

a.

10*10+5

b.

105 as a string

c.

105 as an integer value

d.

Exception is thrown

Posted under JavaScript

Answer: (c).105 as an integer value

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Consider the following code snippet : var grand_Total=eval("10*10+5"); The output for the above statement would be :
Pooja : June 26, 2023

Good