Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
const xhr = new XMLHttpRequest(); const url = 'https://jsonplaceholder.typicode.com/albums'; xhr.open('GET', url); xhr.addEventListener('load', () => { console.log(JSON.parse(xhr.response)); }); xhr.send();
а как бы это выглядело без fetch?