eval
Eval (verb) means to run a piece of program code that is stored as a text string, rather than as compiled instructions. Example: “The script uses eval to run whatever formula the user types in.”
How to use eval
Learner’s notesIn plain EnglishIn programming, a command that takes text and runs it as if it were code. Informally, also used as shorthand for "evaluation".
Using eval on untrusted input (like text typed by a website visitor) is a well-known security risk, since it can run malicious code.
Word forms
- Third person singular
- evals
- Past tense
- evaled, evalled
Fill the gap
Can you complete this real example?
The script uses _____ to run whatever formula the user types in.
Etymology
A shortening of "evaluate", used as both a programming keyword and informal shorthand for an evaluation or assessment.