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 developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #fetch #api
ADD COMMENT
Topic
Name
2+1 =