Set the variable to different value and then try.
Result:
Entering block switch
Good job
Block Exiting switch
Đặt biến vào giá trị khác nhau và thử thử .
Break commands play an important role in switch-case commands. Try the following code using the switch-case command without any break commands.
Set the variable to different value and then try.
Result:
Entering block switch
Good job
Pretty good
Passed
Not so good
Failed
Unknown grade
Block Exiting switch
Đặt biến vào giá trị khác nhau và thử thử .
According to Tutorialspoint
Previous lesson: if . else command in JavaScript
Next: The while loop in JavaScript