I have added one line to your code to help you see that you have not passed the test:
let hello = " Hello, World! ";
let wsRegex = / {2,}/; // Change this line
let result = hello.replace(wsRegex, ""); // Change this line
console.log('"'+result+'"');
You can fix this code by adding one letter to the end of your regular expression; however, you should note that this is a poor solution that only works for this particular string, and it will not work in 99% of cases in which you need to trim whitespace from the beginning and end of a string.
Ideally, your solution should make use of the following: \s, ^, $, and |. You can play around with different regular expressions and different test strings here: