Please note, this is a STATIC archive of website www.tutorialrepublic.com from September 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Switch Case Statement</title> </head> <body> <script> var d = new Date(); switch(d.getDay()) { case 0: document.write("Today is Sunday."); break; case 1: document.write("Today is Monday."); break; case 2: document.write("Today is Tuesday."); break; case 3: document.write("Today is Wednesday."); break; case 4: document.write("Today is Thursday."); break; case 5: document.write("Today is Friday."); break; case 6: document.write("Today is Saturday."); break; default: document.write("No information available for that day."); break; } </script> </body> </html>