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

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