for loops

Tutorials of (For loops) by Edina

<!DOCTYPE html>
<html >
<head>
  <meta charset="UTF-8">
  <title>for loops</title>
  
  
  
  
  
</head>

<body>
  
  
    <script  src="js/index.js"></script>

</body>
</html>
/* Downloaded from https://www.codeseek.co/ */
/* Downloaded from https://www.codeseek.co/ */
var question = prompt("Give me one of the 7 wonders of the ancient world!")
var the7wonders = ["Great Pyramid at Giza", "Hanging Gardens of Babylon", "Statue of Zeus at Olympia", "Temple of Arthemis at Ephesus", "Mausoleum at Halicarnassus", "Colossus of Rhodes", "Lighthouse at Alexandria"];
for (var i = 0; i < 7; i++) {
 if (question === the7wonders[i]) {
    alert("You are right");
  }
}

This awesome code ( for loops ) is write by Edina, you can se more from this user in the personal repository

You can find the original code on Codepen.io

2018 © Edina