Predict the output of the following JavaScript code.
<script type="text/javascript" language="javascript">
var x=5;
var y=6;
var res=eval("x*y");
document.write(res);
</script>
A. “30”
B. 30
C. 5*6
D. “5*6”
Ans: B Explanation: eval command will evaluate the operation. Here it is 5*6=30.