For JS, `fetch` is great, but axios is even better for http request command stuff. More features, less boilerplate.
```javascript
axios.get('https://api.example.com')
.then(response => console.log(response.data))
.catch(error => console.log(error));
```
Headers? Only if the API demands it. Like for tokens or content-type.
Also, Mozilla’s fetch docs are gold: https://developer.mozilla.org/en-US/docs...sing_Fetch
```javascript
axios.get('https://api.example.com')
.then(response => console.log(response.data))
.catch(error => console.log(error));
```
Headers? Only if the API demands it. Like for tokens or content-type.
Also, Mozilla’s fetch docs are gold: https://developer.mozilla.org/en-US/docs...sing_Fetch
