Switch statement

단단한어린이·2022년 4월 5일
0

Javascript

목록 보기
4/17
post-thumbnail

The switch statement evaluates the expression of the switch statement and moves the execution order to a case statement with an expression matching the value.
The case statement specifies an expression that means a case and ends with a colon. And then position the doors to execute.
If there is no case statement with an expression that matches the expression of the switch statement, the execution order moves to the default statement.

The default option is literally optional.

profile
Footprints in Coding

0개의 댓글