Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

delete backspace on string js

// str1 your string with backspace 
var str1 = 'Hello world xd lol'
var str2 = ''
// str2 string without empty 
str2 = str1.replace(/s/g, '')
console.log(str2)
// "Helloworldxdlol"
 
PREVIOUS NEXT
Tagged: #delete #backspace #string #js
ADD COMMENT
Topic
Name
5+9 =