Page 1 of 1
Explain Eval
Posted: Thu May 26, 2011 12:29 pm
by unemployment
What does eval do? How is it used?
Re: Explain Eval
Posted: Thu May 26, 2011 3:36 pm
by jacek
it evaluates the given javascript code. In simple terms, it processes (or runs) the code you give it as a string
eval('alert("test");');
it the same as
alert("test");
effectively.