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 |
Can array in javascript be extended?
What is eval() in javascript?
What are self Executing Functions?
What is the use of let & const in javascript?
how to write frame work Architecture in QTP
What is jscript used for?
What are local variables in javascript?
What is the difference between HTMLCollection and NodeList?
What is javascript and its advantages?
Explain how can you submit a form using JavaScript?
Is javascript hard to learn?
What is the result of below given line of code in java script? 5+4+'7'?