Created
March 8, 2018 16:41
-
-
Save florentinH/1ed7241222a7c8439fcaa77c84ba51db 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="fr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Patates</title> | |
</head> | |
<body> | |
<script> | |
var patates = prompt("Hey mon ami ! Tu aime ça les patates ?") | |
var tasdepatates = '#'; | |
var total = '#'; | |
if (patates =='oui') { | |
for(i=0; i<7; i++){ | |
console.log(total); | |
total += tasdepatates; | |
} | |
} | |
else if (patates =='non') { | |
alert("Oh dommage ...!") | |
} | |
else{ | |
alert("je vous sens comme tiraillé.") | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment