Created
March 11, 2018 23:54
-
-
Save maylisdoucet/b33edf96c674739f3355e76a0c4336e9 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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Patates</title> | |
</head> | |
<body> | |
<script> | |
var reponse = prompt('Hey mon ami ! Tu aimes ça les patates ?'); | |
var patate =''; | |
if (reponse == 'oui'){ | |
for (var i= 0; i < 7; i++) | |
{ | |
patate = patate + '#'; | |
console.log(patate); | |
} | |
} | |
else if (reponse == 'non') | |
{ | |
alert( 'Dommage. Mais je respecte.'); | |
} | |
else { | |
alert('Je te sens tiraillé.'); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment