Cuéntanos qué está pasando:
Describe tu problema en detalle aquí.
Hi, this is my code so far.. I can´t do the method .toLowerCase() but the other aprt it’s passed. I think so haha. Please help me to end this.
Tu código hasta el momento
// Cambia solo el código debajo de esta línea
function urlSlug(title) {
let newString = title.split(/\s/)
return newString.join("-")
}
// Cambia solo el código encima de esta línea
urlSlug("A Mind Needs Books Like A Sword Needs A Whetstone");
console.log(urlSlug("A Mind Needs Books Like A Sword Needs A Whetstone"))
Información de tu navegador:
El agente de usuario es: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Challenge: Apply Functional Programming to Convert Strings to URL Slugs
Enlaza al desafío: