Bug? in JS Apply Functional Programming to Convert Strings to URL Slugs

Even if I copy one of the correct solutions FCC console tells me I’m modifying the global variable… which I’m not according to the browser console. Am I doing something wrong or is this a bug?

// the global variable
var globalTitle = " Winter Is  Coming";

// Add your code below this line
function urlSlug(title) {
    return title.split(/\s+/)
                .filter(elem => elem) //Remove trailing whitespace (or use trim())        
                .join("-")
                .toLowerCase();
}
// Add your code above this line

console.log(globalTitle);
var winterComing = urlSlug(globalTitle); // Should be "winter-is-coming"
console.log(winterComing);
console.log(globalTitle);

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.

you changed this line
bring it back to what it was

do you want to give feedback that it is not said to not change that line? you can report that as a bug f you want

Thanks ieahleen! That fixed the problem