Rewrite the following switch/case as an using if, else, and…
Rewrite the following switch/case as an using if, else, and else if to achieve the same output. switch (x) { case 5: case 10: console.log(“OK”); break; case 20: console.log(“Close”); break; default: console.log(“Invalid”); }
Read Details