Re:Using the switch(true) pattern in JavaScript
by jakopo87 on Tuesday April 13, 2021 @03:20AM
(#26789083)
It is already possible: var makes a variable function-scoped,
let/const makes a variable block-scoped.
Or are you referring to something else?
[ Parent
| on HN ]
There are no comments on this comment yet.