Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>JavaScripting</title>
- <link rel="stylesheet" type="text/css" href="style.css">
- </head>
- <body>
- <script>
- let tasDePatates = '#'
- let question = prompt("Hey mon ami ! Tu aimes ça les patates ?");
- if (question === 'Oui' || question === 'oui' || question === 'Yes' || question === 'yes'){
- for(let i=0; i<7; i++){
- console.log(tasDePatates);
- tasDePatates = tasDePatates + '#';
- };
- }else if (question === 'Non' ||question === 'non' ||question === 'No' ||question === 'no'){
- alert('Ohhh c\'est pourtant si bon les patates mon ami!');
- }else{
- alert('Je vous sens comme tiraillé');
- };
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement