fetch('urlToFetch')
        .then(response => response.json())
        .then(data => console.log(data));
      Javascript language logo

      fetch get

      My JavaScript recipes

      Simple example of fetch with GET method

      Shortcut: request.get

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.