Please login to start chat

ICT Solutions 22 Jun 2022, 09:39:35
Category : JavaScript Tutorials

forof (JS For Loop)

<!DOCTYPE html>
<html>
<head>
<title>JavaScript Code Testing</title>
</head>
<body>
<p id = "demo"></p>
<script>
var names = ["Maung Maung", "Aung Aung", "Mya Mya", "Hla Hla"];
var txt;

for(txt of names){
document.write("<li>" + txt + "</li>");
}
</script>
</body>
</html>

Comments:

No comment to show.

Available Services
Download Android Application