gabrielaozegovic

P9

Dec 22nd, 2018
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3.  <title>Palindrom Tester</title>
  4.  
  5.  <script type="text/javascript" src="palindrom.js"> </script>
  6. </head>
  7.  
  8. <body>
  9.   <script type="text/javascript">
  10.     fraza = prompt("Upisi rijec ili frazu", "Ovo nije palindrom");
  11.  
  12.     if (jePalindrom(fraza)) {
  13.       document.write("'" + fraza + "' <b>JEST</b> palindrom.");
  14.     }
  15.     else {
  16.       document.write("'" + fraza + "' <b>NIJE</b> palindrom.");
  17.     }
  18.   </script>
  19. </body>
  20. </html>
Add Comment
Please, Sign In to add comment