-
-
Save parzibyte/2a99f89fe0da9676f8b413d6357a8f39 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
let edad = parseInt(prompt("Dime tu edad")); | |
while(edad > 18) { | |
alert("Eres mayor de edad"); | |
break; // ¡No olvides el break! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment