πŸ“Š JavaScript
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) 20

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
287
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
96%
Success Rate