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