Skip to content

Instantly share code, notes, and snippets.

@ConstanceHT
Last active March 12, 2018 14:49
Show Gist options
  • Save ConstanceHT/278b6bee9889d7a2173fa5db93ab21db to your computer and use it in GitHub Desktop.
Save ConstanceHT/278b6bee9889d7a2173fa5db93ab21db to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
</body>
<script>
let patates = prompt("Hey mon ami ! Tu aimes ça les patates ? oui ou non ?")
let tasDePatates = '#'
if (patates ==='oui') {
for (var i = 1; i <= 7; i++){
console.log(tasDePatates)
tasDePatates = tasDePatates +'#'
}
}
else if (patates === 'non')
alert("Dommage c'est si bon")
else
alert("Je vous sens comme tiraillé mmmmmm")
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment