Last active
March 12, 2018 14:49
-
-
Save ConstanceHT/278b6bee9889d7a2173fa5db93ab21db 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> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
</body> | |
<script> | |
let patates = prompt("Hey mon ami ! Tu aimes ça les patates ? oui ou non ?") | |
let tasDePatates = '#' | |
if (patates ==='oui') { | |
for (var i = 1; i <= 7; i++){ | |
console.log(tasDePatates) | |
tasDePatates = tasDePatates +'#' | |
} | |
} | |
else if (patates === 'non') | |
alert("Dommage c'est si bon") | |
else | |
alert("Je vous sens comme tiraillé mmmmmm") | |
</script> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment