Firefox: ES6: Use export to Share a Code Block

Tell us what’s happening:

In Firefox 76.0.1 this code will not validate. It results in “ReferenceError: exports is not defined.” Maybe a relatively new browser incompatibility has popped up? I see older references to this problem but nothing recent. And it works fine in Chrome.

Your code so far

export const uppercaseString = (string) => {
return string.toUpperCase();

export const lowercaseString = (string) => {
return string.toLowerCase()

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0.

Challenge: Use export to Share a Code Block

Link to the challenge:

Oh nevermind. Firefox and Chrome behave the same way. I didn’t realize it was successfully validating, I was so intent on trying to figure out what the error was I assumed it wasn’t working.

1 Like

Yes, it spits out an error because the exports weren’t defined yet. But the challenge only asks for you to export them.

1 Like