Remove space from a string using javascript / Development, Interview Questions, Javascript console.log("Hello World".replace(/\s+/g,'')); // Output is HelloWorld