Skip to content

Instantly share code, notes, and snippets.

@gaspaonrocks
Created March 12, 2017 21:19
Show Gist options
  • Save gaspaonrocks/2ac6d617dd1cabbffeb4d5d78c4cfd09 to your computer and use it in GitHub Desktop.
Save gaspaonrocks/2ac6d617dd1cabbffeb4d5d78c4cfd09 to your computer and use it in GitHub Desktop.
<!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