Last active
March 9, 2018 08:55
-
-
Save ValeryC/b593c418e6ed4d04f457fa2602eb705d to your computer and use it in GitHub Desktop.
quete 1 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
var repuser = prompt("Hey mon ami ! Tu aimes ça les patates ? (Y/N)"); | |
var patate= '#'; | |
if(repuser=='Y'){ | |
for(var i=0; i<7; i++){ | |
console.log(patate) | |
patate += '#'; | |
} | |
}else if(repuser=='N'){ | |
alert("Dommage la tartiflette c'est bon!") | |
} | |
else | |
alert("Je vous sens comme tiraillé") |
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>exo quete javascripting</title> | |
<link rel="stylesheet" type="text/css" media="screen" href="main.css" /> | |
<script src="main.js"></script> | |
</head> | |
<body> | |
<p>ouvrir l'inspecteur de votre page web, puis regarder la console :) </p>> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment