Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is eval pls breif information send me



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

Post New Answer

More JavaScript Interview Questions

Can array in javascript be extended?

0 Answers  


What is eval() in javascript?

0 Answers  


What are self Executing Functions?

0 Answers  


What is the use of let & const in javascript?

0 Answers  


how to write frame work Architecture in QTP

0 Answers  


What is jscript used for?

0 Answers  


What are local variables in javascript?

0 Answers  


What is the difference between HTMLCollection and NodeList?

0 Answers  


What is javascript and its advantages?

0 Answers  


Explain how can you submit a form using JavaScript?

0 Answers  


Is javascript hard to learn?

0 Answers  


What is the result of below given line of code in java script? 5+4+'7'?

0 Answers  


Categories