import { api_call } from "./util"; const personnages = document.getElementById("resultats"); console.log('personnage.js loaded'); api_call("people", console.log); function remplissage(json){ console.log(json.results[0]); api_call("planets/1", (response) => { console.log(response); }); personnages.innerHTML = `

1
2
3
`; } api_call("planets", remplissage);