Sublime Text
<!DOCTYPE html> <html> <body> <script> var myName = "Nguyễn Thành Nhân"; function intro(){ var year = 1993; document.write("- Họ tên: " + myName); document.write("<br>"); document.write("- Năm sinh: " + year); document.write("<br>"); } intro(); document.write("+ Họ tên: " + myName); document.write("+ Năm sinh: " + year); </script> </body> </html>
<!DOCTYPE html> <html> <body> <script> var myName = "Nguyễn Thành Nhân"; function intro(){ var year = 1993; document.write("- Họ tên: " + myName); document.write("<br>"); document.write("- Năm sinh: " + year); document.write("<br>"); } intro(); document.write("+ Họ tên: " + myName); document.write("+ Năm sinh: " + year); </script> </body> </html>