Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

replacing each space in a string javascript

const name = 'Hi my name is Flavio'
name.replace(/s/g, '') //HimynameisFlavio
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #replacing #space #string #javascript
ADD COMMENT
Topic
Name
1+7 =