split a string in js if particular word comes code example
Example: search a word and separate in javascript
var data = "Welcome to Stack Overflow";
console.log(data.split(" ").splice(1));
var data = "Welcome to Stack Overflow";
console.log(data.split(" ").splice(1));