#22426 - Switch statements and strict comparison - JavaScript - The freeCodeCamp Forum
https://forum.freecodecamp.org/t/switch-statements-and-strict-comparison/435465For example,
const value = 1;
switch (value) {
// ...
that would match for:
case 1:
but not for
case '1':
Je n’avais jamais fait attention, mais donc en JS, l’opérateur switch utilise un comparateur strict.