Change Content - Javascript
Change html element content using pure javascript author(s): Deepu Mohan Puthrote (WarFox)
JavaScript
function checkMultipleOccurrences(sentence) {
var matchExpression = /(JavaScript?[^\s]+)|(typescript?[^\s]+)/g;
return sentence.match(matchExpression);
}
var sentence="This is my first JavaScript Program which is the subset of typescript";
console.log(sentence);
console.log(checkMultipleOccurrences(sentence));