Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset=UTF-8>
- <title>Bonjour tout le monde !</title>
- </head>
- <body>
- <script>
- let asking = window.prompt('Hey mon ami ! Tu aimes ça les patates ?');
- if (asking === 'oui') {
- var rows = 8;
- for(var i=1; i<=rows; i++){
- for(var j=1; j<=i; j++ ){
- document.write("#");
- }
- document.write("<br/>"); }
- } else if (asking === 'non') {
- window.alert('Je suis très décu!');
- } else {
- alert('je vous sens tiraillé');
- }
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment