How to Remove a Substring from a String in JavaScript

How to Remove a Substring from a String in JavaScript