<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Simple forEach example</title>
  </head>
  <body>
    <script>
    const gods = ['Apollo', 'Artemis', 'Ares', 'Zeus'];

    gods.forEach(function (eachName, index){
      console.log(index + '. ' + eachName);
    });
    </script>
  </body>
</html>
