3 ms·
Oh, your examples are better. Except for the break on the functional switch (that is weird again), they are how it should be done. Is the example on the articl
by marcosdumay 8y ago
Oh, your examples are better. Except for the break on the functional switch (that is weird again), they are how it should be done.
Is the example on the article wrong? A functional "if" shouldn't accept just one side of the branch, a functional switch shouldn't accept a "break", and although it's not absurd that a functional code block accepts a "return", it is not usual.
- y4mi 8y agothe break is part of a switch/case though? https://www.w3schools.com/js/js_switch.asp https://www.w3schools.com/js/js_switch.asp
- deleted 8y ago[deleted]