Your pattern matches one quote followed by one space followed by any number of quotes. Below is a link to an interactive tool that will break that down further for you.
Simpler still…the key to this one is realizing that you are searching for 2 spaces, and that /g flag allows your regex to do so multiple times in the string:
let hello = " Hello, World! ";
let wsRegex = /\s{2,}/g;
let result = hello.replace(wsRegex,'');