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 are different types of inheritence? Which inheritance is followed in javascript.

967


What is a null variable in javascript?

1084


What does 3 dots mean in javascript?

959


What is dhtml in javascript?

968


Explain the process of document loading.

1026


what is the difference between wrappers and primitives es: diff between int i=200 in primitives and integeri = new integer(54)

2383


java pgm for reads a file(text file) and removes all the spaces then the text and write this back into the same file. e.g: (Input) _______ chennai is fourth biggest city in india. (output) _______ chennaiisfourthbiggestcityinindia.

2055


Which javascript framework is in demand?

1085


Which is faster jquery or javascript?

992


How do I run code in browser console?

1061


How do you name a variable in javascript?

1027


What are anonymous functions in Javascript?

1070


Is a relation always a function?

1002


Which built-in method returns the characters in a string beginning at the specified location?

1103


What is the use of a weakset object in javascript?

1081