modify current scope at runtime❗️
🚧 施工中
Last updated
Was this helpful?
🚧 施工中
Last updated
Was this helpful?
⟩ ⟩ ⟩ modify current scope at runtime
will introduce a new variable into the current scope. (I think "modify scope" is not accurate, "modify lexical environment" maybe) lexical environment vs. scope
will not introduce a new variable into the current scope, the newly created variable is local to the inner script. ( eval has its own scope in strict mode )
replit:
replit:
YDKJS: Scope & Closures (v.2) ⟩ Ch. 1 ⟩