Created
June 25, 2020 05:14
-
-
Save parzibyte/86f91401559db0a4be645b72c51302f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const URL_API = "https://api.ipify.org/?format=json"; | |
fetch(URL_API) | |
.then(respuestaRaw => respuestaRaw.json()) | |
.then(respuesta => { | |
const ip = respuesta.ip; | |
console.log("Tu IP es: "); | |
console.log(ip) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment