🔸eval

JSconceptsscopeglobalglobal object ⟩ eval()

evaluates script (in the current scope) and returns its completion value.

🛑 Never use eval()

Functions created with the Function constructor always are created in the global scope. 👉 MDN

Last updated