Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 183 Bytes

Remove String Spaces.md

File metadata and controls

12 lines (8 loc) · 183 Bytes

Description:

Simple, remove the spaces from the string, then return the resultant string.

Solution:

function noSpace(x){
  return x.replace(/\s/g, '');
}