jsRant asked this 8 years ago

Should I use eval() in Javascript?

When should I use eval() in Javascript ?

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


Best Answer by ben100 8 years ago

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

This can be a good or bad thing.