These are chat archives for FreeCodeCamp/Help

4th
Mar 2019
BuntyBru
@BuntyBru
Mar 04 08:22
@thekholm80
Nothing new the same old
code eat sleep repeat
thinking about learning react as of now
GitMinimal
@GitMinimal
Mar 04 16:52
mySQL clusters is the same thing as a normal mySQL server with the exception of it running in multiple data-centers to prevent a single PoF. I'm sure the reason it's faster is due to its geographical displacement, meaning someone from the west coast won't need to connect to the same datacenter as someone in the east coast.
Engjell Bislimi
@Engjell00
Mar 04 19:42
Hello is this a good place to ask about react^
Christopher McCormack
@cmccormack
Mar 04 19:43
Sure, although https://gitter.im/FreeCodeCamp/HelpJavaScript may be better @Engjell00
Engjell Bislimi
@Engjell00
Mar 04 20:24
@cmccormack thanks
The same direction I have solved is different but the same conclusion. Why is not accepted
return title.split(" ").join('-').toLowerCase();
what is the difference
Brad
@bradtaniguchi
Mar 04 20:35
@ali27001 Which test-cases are you not passing?
I just want to understand the difference between what I do and the solution
Brad
@bradtaniguchi
Mar 04 20:39
You said your solution doesn't pass right?
Ali Bulut
@ali27001
Mar 04 20:39
return title.split(/\W/).filter((obj)=>{ return obj !==''; }).join('-').toLowerCase();
Brad
@bradtaniguchi
Mar 04 20:39
Your code doesn't pass as it doesn't consider this case: urlSlug(" Winter Is Coming") should return "winter-is-coming".
Ali Bulut
@ali27001
Mar 04 20:40
console is working
Can you try my code on the console? Does the same result come out?
Brad
@bradtaniguchi
Mar 04 20:48
"-winter-is--coming"
" Winter Is Coming" -> "-winter-is--coming" using your code, which isn't valid
Ali Bulut
@ali27001
Mar 04 20:59
it is same, is not it?
Brad
@bradtaniguchi
Mar 04 21:04
no, the test expects: 'winter-is-coming' but your code returns "-winter-is--coming"
for an input of : " Winter Is Coming"
(there is an extra space between Is and Coming)
Ali Bulut
@ali27001
Mar 04 21:07
hmm . ok thanks
Brad
@bradtaniguchi
Mar 04 21:13
np :D
Fedor Lapshin
@FedorLap2006
Mar 04 21:33
hi
Brad
@bradtaniguchi
Mar 04 21:38
hello
Kaz Baig
@kbaig
Mar 04 21:41
howdy
Sam
@geoneo123
Mar 04 22:15
Hey All!