Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Java Script</title>
- </head>
- <body>
- <h1>Hello World</h1>
- <script>
- let patatoes = "#"
- const question= prompt("Hey mon ami ! Tu aimes ça les patates ?")
- if(question[0] === 'o' || question[0] === "O"){
- for (i=0;i<=6;i++){
- console.log(patatoes)
- patatoes = patatoes + "#"
- }
- }
- else if( question[0] === "n" || question[0] ==="N"){
- alert("Je suis deçut")
- }
- else{
- alert("Je vous sens comme tiraillé")
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement