fetch("https://codetogo.io/api/users.json") .then(response => response.json()) .then(data => { console.log(data); }) .catch(console.error);
[{ id: 1, name: "Sam" }, { id: 2, name: "Alex" }]