How to put a search engine in my website?

I am trying to make a search menu on my webpage as shown on this webpage: W3Schools Tryit Editor , but when I write the JS code, nothing happens. Why is this? Here is the repl link: Multi-Ware - HTML, CSS, JS Repl - Replit (Click on TV in the repl output to see it.)

Hi @RahikAhsan I can’t see any evidence of search input box or any JS related to searching on your TV page. Are you sure you added it?

I have commented out the code. I will put it back now.