To execute a single block of code satisfying a condition in case statement of JavaScript switch-case statement is used. Break keyword is used in every case statement
In JavaScript if-else statements are also known as conditional statements. If-else statements are used to execute any block of code conditionally