interviews.dotnetthread.com

↑ Grab this Headline Animator

Monday, June 2, 2008

Explain eval function of JavaScript

It evaluates a string and executes it as if it was a script.

eval("x=7;y=5;document.write(x+y)");

This returns 12

Submit this story to DotNetKicks

No comments:

Post a Comment

Post your comments/questions/feedback for this Article.

 

Latest Articles