for loops

Tutorials of (For loops) by Edina

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

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

/* Downloaded from */
/* Downloaded from */
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

2018 © Edina