Switch Case example in JavaScript
<html> <body> <h2>Switch case, generates system date </h2> <p id="demo"></p> <script> let day; switch (new Date().getDay()) { case 0: day = "Sunday"; break; case 1: day = "Monday"; break; case …
Switch Case example in JavaScript Read More