declaration
🚧 under construction -> function*
Last updated
Was this helpful?
🚧 under construction -> function*
Last updated
Was this helpful?
⟩ ⟩ declaration
declarations and statements are different
statement vs. declaration
var is a statement. (👉 var is a statement❗️)
let/const is a declaration.
in a module there's no "module scope object" for these top-level declarations to be added to as property.
( 👉 compare: global var / function is global object property❗️)
var is a statement, not a declaration. 👉 statement expected❗️
YDKJS: Scope & Closures (v.2) ⟩ Ch. 4 ⟩
⟩
❗️❗️❗️