Tell us what’s happening:
I have no idea why this code doesn’t work. I checked it in console and it did well. I don’t understand why this code doesn’t pass the tests.
Your code so far
let hello = " Hello, World! "; let wsRegex = /\s/g; // Change this line let result = hello.replace(wsRegex,""); // Change this line
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0.