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>
β
Correct Answer: (A)
20