Tips & Tricks

A programming language is a special computer language (set of rules) use to develop software programs. The description of a programming language is usually split into the two components of syntax and semactics (meaning).

How to find prefix and suffix of the word in javascript

First of all, you have to know that how to get the currently selected text on the page by using the JavaScript. So, Javascript provided a method for retrieving the current selection of the page by using window.getSelection().