Its syntax is:
Here is the code:
var name = 'Angelina';
document.write(eval('"Welcome " + name;'));
document.write("The sum of two numbers is: "+eval(x+5));
eval("x=25;y=35;document.write('The product of two numbers is:'+ x*y)");
Output will be displayed as:
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.