Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html>
  3.  
  4. <body>
  5.  
  6. <script>
  7.  
  8. const reponse = prompt("Hey mon ami ! Tu aimes ça les patates ?") ;
  9. const nana = '#' ;
  10. let result = '' ;
  11.  
  12. if (reponse === 'oui' || reponse === 'OUI' || reponse === 'yes' || reponse === 'YES' || reponse === 'Oui' || reponse === 'YES') {
  13. for (let i = 0; i < 7; i++) {
  14. result = result + nana ;
  15. console.log(result) ;
  16. }
  17. }
  18.  
  19. else if (reponse === 'non' || reponse === 'Non' || reponse === 'NON' || reponse === 'no' || reponse === 'No' || reponse === 'NO') {
  20. alert('pas content') ;
  21. }
  22.  
  23. else {
  24. alert('Je vous sens comme tiraillé')
  25. }
  26.  
  27. </script>
  28.  
  29. </body>
  30.  
  31. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement