SHARE
TWEET

Untitled

a guest Mar 26th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top