Remove Whitespace from Start and End challenge bug

Tell us what’s happening:
Describe your issue in detail here.
This code works even though I am supposed to use a Regex. Just wanted to point this out

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/94.0.4606.71 Safari/537.36

Challenge: Remove Whitespace from Start and End

Link to the challenge:


Hi @omar.housari !

Welcome to the forum!

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.