Tell us what’s happening:
Only this test case fails. Please help me out. Thanks in advance.
result
should equal to "Hello, World!"
Your code so far
let hello = " Hello, World! ";
let wsRegex = /^\s+\s+$/; // Change this line
let result = hello.replace(wsRegex, ''); // Change this line
Your browser information:
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/remove-whitespace-from-start-and-end