Eval

Noun · Verb · Development

Definitions

  1. A function that executes a string as code at runtime. Available in JavaScript, Python, Ruby, and many dynamic languages. Powerful for metaprogramming but widely considered dangerous — 'eval is evil' is a common security maxim.

    In plain English: A function that turns text into runnable code on the fly — incredibly powerful but also incredibly dangerous if you let untrusted input anywhere near it.

    Example: "Someone put user input straight into eval() and now we have a remote code execution vulnerability."

Related Terms