*Tell us what’s happening:
Maybe someone can explain what is going on but I think that the + symbol takes the remainder of what happens after the match.
For example: \s+$
Doesn’t this mean that you are looking for the ‘space’ at the end because of the $ symbol, but why do you need the + at the end if the space is at the end with nothing following it?
Your code so far
let hello = " Hello, World! ";
let wsRegex = /change/; // Change this line
let result = hello; // Change this line
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36.