What Is Eval() In JavaScript


  • 25 Dec, 2011

    The eval() method is incredibly powerful allowing us to execute snippets of code during execution in JavaScript.<script type="text/javascript">var USA_Texas_Austin = "521,289";document.write("Population is "+eval("USA_"+"Texas_"+"Austin"));</script>This producesPopulation is 521,289

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.