Last active
October 11, 2018 14:23
-
-
Save PradalCyril/8362e193b09dafda61ab09c31e105efa 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" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Page Title</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script src="Javacript.js"></script> | |
</head> | |
<body> | |
</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 coucou = prompt("Hey mon ami ! Tu aimes ça les patates ?"); | |
if (coucou == "oui" || coucou =="Oui") { | |
oui(); | |
} else if (coucou == "non" || coucou =="Non") { | |
non(); | |
} else { | |
alert( "Je vous sens comme tiraillé" ); | |
} | |
function oui() { | |
for (let i=1;i<=7;i++){ | |
for(let j=0;j<i;j++){ | |
document.write("#"); | |
} | |
document.write("<br />"); | |
} | |
}; | |
function non() { | |
alert("Les frites vont disparaitre :( "); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment