Answers for "add dash instead space in string js"

4

list process using port

sudo lsof -n -i :80 | grep LISTEN
Posted by: Guest on April-15-2021
-1

See process on port

netstat -ano | findstr 8080Code language: Bash (bash)
Posted by: Guest on May-12-2021
2

js replace space with dash

// replaces space with '-'
str = str.replace(/ /g, "-");
// or
str = str.split(' ').join('-');
Posted by: Guest on May-11-2021

Code answers related to "add dash instead space in string js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language