hw06_07.html 210 B

12345678910
  1. <header>
  2. <h1>IndexOf Word</h1>
  3. </header>
  4. <body>
  5. <script>
  6. let a = prompt("Enter a phrase").split(' ').indexOf(prompt("Enter word"));
  7. alert(a < 0 ? "Not found" : a);
  8. </script>
  9. </body>