Skip to content

Instantly share code, notes, and snippets.

@mehdihettak
Created March 14, 2019 18:50
Show Gist options
  • Select an option

  • Save mehdihettak/fd6e70242b34a997961dfe25cf67e3e0 to your computer and use it in GitHub Desktop.

Select an option

Save mehdihettak/fd6e70242b34a997961dfe25cf67e3e0 to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="">
<title>tddjavascripting</title>
</head>
<body>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS, then my own scripts -->
<script src="tddjavascripting.js"></script>
</body>
</html>
let patates = prompt('Hey mon ami ! Tu aimes ça les patates ?');
switch(patates) {
case "oui":
for (let i = 0; i < 7; i++) {
console.log("#".repeat(i))
}
break;
case "non":
alert ("dommage!")
break;
default:
alert ("Je vous sens comme tiraillé")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment