Sublime Text
<!DOCTYPE html> <html> <body> <script> var season = "ha"; switch (season){ case "xuan": document.write("<p>Mùa Xuân</p>"); case "ha": document.write("<p>Mùa Hạ</p>"); case "thu": document.write("<p>Mùa Thu</p>"); case "dong": document.write("<p>Mùa Đông</p>"); } </script> </body> </html>
<!DOCTYPE html> <html> <body> <script> var season = "ha"; switch (season){ case "xuan": document.write("<p>Mùa Xuân</p>"); case "ha": document.write("<p>Mùa Hạ</p>"); case "thu": document.write("<p>Mùa Thu</p>"); case "dong": document.write("<p>Mùa Đông</p>"); } </script> </body> </html>