🚧 施工中
Last updated 2 years ago
Was this helpful?
⟩ ⟩ ⟩ function boundary
(related to function scope) 🚧
break / continue
won't operate across an IIFE function boundary to control an outer loop / block.
📗
if the code you need to wrap a scope around has return / this / break / continue in it:
don't use function / IIFE (which has its own function boundary)
use block instead.
YDKJS: Scope & Closures (v.2) ⟩ Ch. 6 ⟩