Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Javascript axios get async await

const axios = require('axios');

async function doGetRequest() {

  let res = await axios.get('http://webcode.me');

  let data = res.data;
  console.log(data);
}

doGetRequest();
Source by zetcode.com #
 
PREVIOUS NEXT
Tagged: #Javascript #axios #async #await
ADD COMMENT
Topic
Name
8+4 =