How to select and highlight a text within an element using JavaScript?

How to select and highlight a text within an element using JavaScript?

More to explore

Based on this image's title: “How to select and highlight a text within an element using JavaScript?