hw06_06.html 165 B

1234567
  1. <body>
  2. <script>
  3. let a = prompt("Enter a phrase").split(' ').indexOf(prompt("Enter word"));
  4. alert(a < 0 ? "Not found" : a);
  5. </script>
  6. </body>