hw06_26.html 275 B

12345678910111213
  1. <header>
  2. <h1>Beep Lexics</h1>
  3. </header>
  4. <body>
  5. <script>
  6. const lexx = ["xyz", "qwe"];
  7. let phrase = prompt("Enter a phrase").trim().split(' ')
  8. .map(w => lexx.includes(w) ? "BEEP" : w).join(' ');
  9. alert(phrase);
  10. </script>
  11. </body>