Skip to content

Instantly share code, notes, and snippets.

@maylisdoucet
Created March 11, 2018 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maylisdoucet/b33edf96c674739f3355e76a0c4336e9 to your computer and use it in GitHub Desktop.
Save maylisdoucet/b33edf96c674739f3355e76a0c4336e9 to your computer and use it in GitHub Desktop.
<!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