Bài học
Lưu code
Refresh
Xoay
Xem kết quả
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Ví dụ HTML</title> </head> <body > <div style="margin:30px"> <script> var i; var emp = new Array(); emp[0] = "Arun"; emp[1] = "Varun"; emp[2] = "John"; for (i=0;i<emp.length;i++){ document.write(emp[i] + "<br>"); } </script> </div> </body> </html>