what is eval pls breif information send me
Answer / negi
The eval() function evaluates a string and executes it as if
it was script code.
In this example we use eval() on some strings and see what
it returns:
<script type="text/javascript">
eval("x=10;y=20;document.write(x*y)");
document.write("<br />");
document.write(eval("2+2"));
document.write("<br />");
var x=10;
document.write(eval(x+17));
document.write("<br />");
</script>
The output of the code above will be:
200
4
27
| Is This Answer Correct ? | 6 Yes | 0 No |
What does it mean in javascript?
What makes a relation a function?
What is the meaning of callback function?
How do I retrieve a cookie with a given name using a regular expression?
What do “1”+2+4 evaluate to?
how can we retrieve value from one database server and store them another database server using sql server code
How to add a new property in existing function javascript?
What is the best site to learn javascript?
How to access the value of a textbox using javascript?
What are the pop-up boxes available in javascript?
What is function overloading in javascript?
What is npm javascript?