Created
March 14, 2019 18:50
-
-
Save mehdihettak/fd6e70242b34a997961dfe25cf67e3e0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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> |
This file contains hidden or 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 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