eval Is Evil
The eval
function and its relatives (Function
, setTimeout
, and setInterval
)
provide access to the JavaScript compiler. This is sometimes useful, but in most
cases it indicates the presence of extremely bad coding. The eval
function is the most misused feature of
JavaScript.
Get JavaScript: The Good Parts now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.