Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript remove space from string

const removeSpaces = str => str.replace(/s/g, '');

// Example
removeSpaces('hel lo wor ld');      // 'helloworld'
Source by 1loc.dev #
 
PREVIOUS NEXT
Tagged: #javascript #remove #space #string
ADD COMMENT
Topic
Name
5+1 =