jsRant asked this 2 years ago

Should I use eval() in Javascript?

When should I use eval() in Javascript ?

What are the pros and cons of using eval() ?


ben100 2 years ago
1 like

eval() inherits the execution context (caller's scope and this binding).

This can be a good or bad thing.