<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk="
    crossorigin="anonymous"></script>
</head>

<body onload="loadData()">
  <script>
    function loadData() {
      fetch('https://jsonplaceholder.typicode.com/todos/')
        .then(response => response.json())
        .then(jsonArray => {
          // for (let i = 0; i < jsonArray.length; i++)
          let $list = $('#list');
          jsonArray.forEach((data, i) => {
            $list.append(`<li>${i} : ${data.title}</li>`);
          })
          console.log(jsonArray);
        });
    } 
  </script>
  <ul id="list">
  </ul>
</body>

</html>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.