Answers for "JavaScript API (URL)"

0

JavaScript API (URL)

fetch(url)//using API url
    .then(res => res.json()) // parse response as JSON
    .then(data => {
      console.log(data)
    })
    .catch(err => {
        console.log(`error ${err}`)
    });
Posted by: Guest on April-18-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language