Sublime Text
<!DOCTYPE html> <html> <body> <script> var day = new Date().getDay(); switch (day){ case 0: document.write("Chủ Nhật"); break; case 1: document.write("Thứ hai"); break; case 2: document.write("Thứ ba"); break; case 3: document.write("Thứ tư"); break; case 4: document.write("Thứ năm"); break; case 5: document.write("Thứ sáu"); break; case 6: document.write("Thứ bảy"); break; } </script> </body> </html>
<!DOCTYPE html> <html> <body> <script> var day = new Date().getDay(); switch (day){ case 0: document.write("Chủ Nhật"); break; case 1: document.write("Thứ hai"); break; case 2: document.write("Thứ ba"); break; case 3: document.write("Thứ tư"); break; case 4: document.write("Thứ năm"); break; case 5: document.write("Thứ sáu"); break; case 6: document.write("Thứ bảy"); break; } </script> </body> </html>