Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fetch api example

function App() {
  fetch("https://catfact.ninja/fact")
    .then((res) => res.json())
    .then((data) => {
      console.log(data);
    });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fetch #api
ADD COMMENT
Topic
Name
1+9 =