Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <body>
- <script>
- let patate = prompt("Hey mon ami ! Tu aimes ça les patates ?");
- if (patate ==='yes'|| patate ==='Yes' || patate === 'oui' || patate === 'Oui'){
- let txt = '#';
- for (let i=0; i<7; i++){
- console.log(txt);
- txt = txt+'#';
- }
- } else
- if (patate ==='no' || patate === 'No' || patate === 'Non' || patate ==='non'){
- alert("Oh non, dommage pour toi!");
- } else {
- alert("Je vous sens comme tiraillé");
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement