How to Replace White Space in Strings using Regex in JavaScript

How to Replace White Space in Strings using Regex in JavaScript