Created
June 25, 2020 05:16
-
-
Save parzibyte/471cdceaa049c1e963ffea7450ddef30 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"; | |
const respuestaRaw = await fetch(URL_API); | |
const respuesta = await respuestaRaw.json(); | |
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