Change switch Grouping of "case" example
Change switch Grouping of "case" example
This commit is contained in:
parent
d84673a6ec
commit
0287fbd362
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ Several variants of `case` which share the same code can be grouped.
|
||||||
For example, if we want the same code to run for `case 3` and `case 5`:
|
For example, if we want the same code to run for `case 3` and `case 5`:
|
||||||
|
|
||||||
```js run no-beautify
|
```js run no-beautify
|
||||||
let a = 2 + 2;
|
let a = 3;
|
||||||
|
|
||||||
switch (a) {
|
switch (a) {
|
||||||
case 4:
|
case 4:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue