Javascript function is returning an undefined value [duplicate]
I'm trying to display a browser's IP address in a table, fetching the IP address from https://api.ipify.org. So, I did this: function makeRequest(url, callback) { const xhr = new XMLHttpRequest(); ...
- javascript
- function
- undefined