A

Admin • 34.80K Points
Instructor I

Q. What will be the output of the following code snippet?

Code:
<script type="text/javascript" language="javascript">
 
var x=12;
var y=8;
var res=eval("x+y");
document.write(res);
 
</script>
  • (A) 20
  • (B) x+y
  • (C) 128
  • (D) None of the above

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.