Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. var reponse = prompt('Hey mon ami ! Tu aimes les patates ?');
  2.  
  3. var chaine = "";
  4. if (reponse=='oui') {
  5. for (i=1;i<8;i++) {
  6. chaine +="#";
  7. document.write(chaine+ "</br>");
  8. }
  9. }
  10. if (reponse=='non') {
  11. document.write(" C'est bien dommage" + "</br>");
  12. }
  13. if (reponse!=='oui' && reponse!=='non'){
  14. document.write("je vous sens tiraillé"+ "</br>");
  15. }
  16.  
  17.  
  18.  
  19.  
  20. <!DOCTYPE html>
  21. <html lang="en">
  22. <head>
  23.  
  24. <!-- Meta -->
  25. <meta charset="UTF-8" />
  26. <title>My New Pen!</title>
  27.  
  28. <!-- Styles -->
  29. <link rel="stylesheet" href="styles/index.processed.css">
  30. </head>
  31. <body>
  32.  
  33.  
  34. <!-- Scripts -->
  35. <script src="C:\MARILOU\wildCodeSchool\JavaScriptProjets\JavaScripting\patates.js"></script>
  36. </body>
  37. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement