๐ฏlet
declares a block-scoped local variable.
JS โฉ declaration โฉ variable โฉ let
(declaration) declares a local variable in block scope.
Last updated
declares a block-scoped local variable.
JS โฉ declaration โฉ variable โฉ let
(declaration) declares a local variable in block scope.
Last updated
ReferenceError: cannot access '...' before initialization.
not reserved word
้่ชชไผผไนๆไธๅๅฅๆช็ "for-init" scope๏ผไฝ่ฃก้ข let ่ฎๆธ็่กจ็พๅ ถๅฏฆๆดๅๆฏ block-scopedใ scopes matter with closures โฉ