// ⚠️ COMPILARE E CONTROLLARE PRIMA DI INIZIARE ⚠️ const BASE_URL = 'http://localhost:5000/api'; const userId = document.querySelector('#userId'); const loading = document.querySelector('#loading'); const result = document.querySelector('#result'); const btnFetch = document.querySelector('#btnFetch'); /** * FUNZIONE: Crea utente card * * Crea la card completa dell'utente e la inserisce nell'elemento result * La struttura dell'oggetto user è visibile nella documentazione API. * Funzione già fatta - non modificare */ function creaCardUtente(user) { result.innerHTML = `