by borishn · 5y ago · 0 comments
It should be states as "The fundamental principle of the switch pattern in JavaScript is that you can match against expressions as well as values."
From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...:
A switch statement first evaluates its expression. It then looks for the first case clause whose expression evaluates to the same value as the result of the input expression
No comments yet.