Created
September 13, 2018 09:56
-
-
Save JeromeBATAILLE/240d0c5154beb1fbec44b038d8df0e7b to your computer and use it in GitHub Desktop.
Javascripting
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>Tu aimes les patates?</title> | |
</head> | |
<body> | |
<script src="patates.js"></script> | |
</body> | |
</html> |
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
let patates = prompt("Hey mon ami ! Tu aimes ça les patates ??"); | |
if (patates == 'oui') { | |
let patates = '#' | |
for (let i = 0; i < 7; i++) { | |
console.log(patates) | |
patates = patates + '#' | |
} | |
} else if (patates == 'non') { | |
alert("Tu me rends triste!"); | |
} else { | |
alert("Je vous sens comme tiraillé"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment