Created
April 22, 2020 21:32
-
-
Save parzibyte/57bac2c3338a55e4c398fbd1197c318b 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 $btnOcultar = document.querySelector("#btnOcultar"), | |
$btnMostrar = document.querySelector("#btnMostrar"), | |
$parrafo = document.querySelector("#parrafo"); | |
$btnMostrar.addEventListener("click", () => { | |
$parrafo.style.display = "block"; | |
}); | |
$btnOcultar.addEventListener("click", () => { | |
$parrafo.style.display = "none"; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment