Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javascript unsafe operations

 
Grega Leskovšek
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IS it true that eval() function is suggested not to be used? What are javascript unsafe operations? Thanks! Grega
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
99.99% of the time there is a better way to do things. Eval is slow. It is unsafe since you may not know what you are going to be running.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic