Trying to highlight a text using JS
I am trying to highlight a text when the page scrolls it gets marked underneath, and from what I’ve found on the net, the code goes like this. But it seems I am doing something wrong and I cannot get it right.
Please note I am very new and just started learning web-development.