🔀switch
Last updated
Last updated
JS ⟩ statement ⟩ control flow ⟩ branch ⟩ switch
not block:
object literal / class / switch ( no block scope)
function's scope is different from a block scope
the comparison between switch (expr)
and a case clause is done by strict equality (===).