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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why it is not advised to use innerhtml in javascript?

874


Explain how to write class methods vs. Instance methods.

935


What is the difference between window and document in Javascript?

1006


What does the delete operator do?

893


What are all the types of Pop up boxes available in JavaScript?

1034


How to convert javascript date to iso standard?

975


What's the date object using javascript?

952


What is the difference between local storage & session storage?

855


What will happen if an infinite while loop is run in Javascript?

934


What is the difference between remove() and removeChild()?

978


What are the requirements of web application using javascript?

965


What is the reason for wrapping the entire content of a javascript source file in a function book?

981


What is enum in javascript?

1047


What are the decodeURI() and encodeURI()?

991


What is Currying in Javascript?

965