I do not completely understand regex characters :“+” ,“$”.
What do the above characters imply in the code? please clarify for me i get confused on what their purpose is.
Your code so far
let hello = " Hello, World! ";
let wsRegex = /\s \s \s/g; // Change this line
let result = hello.replace(/\s/g, ""); // Change this line
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:107.0) Gecko/20100101 Firefox/107.0
Challenge: Regular Expressions - Remove Whitespace from Start and End
Link to the challenge: