Sublime Text
<!DOCTYPE html> <html> <body> <script> var mobile = ["HTC", "Nokia", "SamSung", "LG", "Apple"]; document.write("Mảng mobile trước khi cập nhật: " + mobile + "<hr>"); mobile[3] = "Lenovo"; document.write("Mảng mobile sau khi cập nhật: " + mobile + "<hr>"); </script> </body> </html>
<!DOCTYPE html> <html> <body> <script> var mobile = ["HTC", "Nokia", "SamSung", "LG", "Apple"]; document.write("Mảng mobile trước khi cập nhật: " + mobile + "<hr>"); mobile[3] = "Lenovo"; document.write("Mảng mobile sau khi cập nhật: " + mobile + "<hr>"); </script> </body> </html>