Generation

generate functionWed, 03 May 2023

buscar un dato en endpoint de strapi si es igual al name

function getData(name){ fetch(`http://localhost:1337/artists${name}`) .then(data => data.json()) .then(data => { console.log(data) }) .catch(err => console.log(err)) } getData("/beyonce")

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant