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

What is the use of a typedarray object in javascript?

950


What is npm repository?

960


What is null in javascript?

993


What is the data type of variables in javascript?

1018


What is the difference between the operators '==' and '==='?

1001


What is differential inheritance?

953


What is a frontend framework?

944


What is s+ in regex?

952


What is the difference between write and writeln in javascript?

898


Are namespaces are there in javascript?

998


What are the methods involved in javascript?

1036


How to force a page to go to another page using javascript ?

903


How does javascript work?

955


How do I view javascript in chrome?

876


What are JavaScript Cookies?

921