Created
March 12, 2017 21:19
-
-
Save gaspaonrocks/2ac6d617dd1cabbffeb4d5d78c4cfd09 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title></title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<script> | |
var patates = prompt('Hey beau gosse, tu aimes ça les patates ?', "") | |
if (patates == "oui") { | |
potatoBag = ["#", "##", "###", "####", "#####", "######", "#######"]; | |
for (let i of potatoBag) { | |
console.log(`${i}`); | |
} | |
alert("tiens, cadeau. Va voir dans la console !") | |
} else if (patates == "non") { | |
alert("tu as raison... les patates douces c'est meilleur !"); | |
} else { | |
alert("non mais... c'est pas une réponse ça..."); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment