<header> <h1>IndexOf Word</h1> </header> <body> <script> let a = prompt("Enter a phrase").split(' ').indexOf(prompt("Enter word")); alert(a < 0 ? "Not found" : a); </script> </body>