Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fetch api sample

 fetch("https://catfact.ninja/fact")
     .then((res) => res.json())
     .then((data) => {
       console.log(data);
     });
 
PREVIOUS NEXT
Tagged: #fetch #api #sample
ADD COMMENT
Topic
Name
4+2 =