// program using switch statement
let a = 1;
switch (a) {
case 1:
a = 'one';
break;
case 2:
a = 'two';
break;
default:
a = 'not found';
break;
}
console.log(`The value is ${a}`);
To embed this program on your website, copy the following code and paste it into your website's HTML: