switch seul default pris en compte javascript code example
Example: switch js
switch(expression) {
case x:
// code block
break;
case y:
// code block
break;
default:
// code block
}
switch(expression) {
case x:
// code block
break;
case y:
// code block
break;
default:
// code block
}