You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will not trigger the Expected a 'break' statement before 'case'. warning:
var restOfWeek = [];
switch(weekday) {
case "Sunday":
restOfWeek.push("Monday");
/* falls through */
case "Monday":
restOfWeek.push("Tuesday");
/* falls through */
...
}
However if I add newlines between the cases for readability the warning is triggered:
var restOfWeek = [];
switch(weekday) {
case "Sunday":
restOfWeek.push("Monday");
/* falls through */
case "Monday":
restOfWeek.push("Tuesday");
/* falls through */
...
}
The text was updated successfully, but these errors were encountered:
This will not trigger the
Expected a 'break' statement before 'case'.
warning:However if I add newlines between the cases for readability the warning is triggered:
The text was updated successfully, but these errors were encountered: