Web Design Tutorials and Articles: Strings and the JavaScript Eval Function

By Chrysanthus - About Me - E-mail this page - Add to My Favorites - Add to Blog List - See other blogs in Computers & Internet

Wednesday, April 8, 2009

Strings and the JavaScript Eval Function

Mastering the JavaScript eval Function – Part III Introduction This is the third last part of the series, Mastering the JavaScript eval Function. In this part of the series, we see how a string can be used as argument to the eval function. String Literal in Argument Can a string literal be used as argument to the eval() function, in the ordinary sense? The answer is No. Execution of the following script stops at the line of the eval function: <script type="text/javascript"> myVar = eval("one");... Sign in to see full entry.

Previous: Statements and the JavaScript Eval Function - New Entries - Next: PHP Regular Expressions

Headlines (What is this?)