//Reemplazar guiones por espacios
//function to replace dashes with spaces
function replaceDashes(str) {
// return the string with dashes replaced by spaces
return str.replace(/-/g, " ");
}
//example
const result = replaceDashes("hello-world");
//output
console.log(result); //hello world
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)