Hi ,
Could anybody please tell me what is the use of eval function inside javascript code .
When i googled for this , i found the below from
w3schools.comThe eval() function evaluates and/or executes a string of JavaScript code.
First, eval() determines if the argument is a valid string, then eval() parses the string looking for JavaScript code. If it finds any JavaScript code, it will be executed.
I found out using eval or not using eval isn't making any difference (Please correct me if i am wrong)
Sample Program using eval :
Same Program without using eval :
Please suggest , thanks .