diff --git a/script.js b/script.js index ffd0176..207a905 100644 --- a/script.js +++ b/script.js @@ -7,18 +7,23 @@ window.addEventListener("load", function () { .then(function (astronauts){ let container = document.getElementById("container"); container.innerHTML+= ` +

Number of Astronaunts on Mission: ${astronauts.length}

\ + ` + for (let i=0; i
-

${astronauts[0].firstName} ${astronauts[0].lastName}

+

${astronauts[i].firstName} ${astronauts[i].lastName}

- + - ` + + ` } }) })