Testing errors? Passed tests without any code modification

Tell us what’s happening:
I have noted in the code the issue in this exercise.
Submitting the default code supplied with no addition or changes to it will pass the tests.

Your code so far

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

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

//const exports = "WHERE IS THIS VARIABLE?";

// issue (1) export exports <--
This causes error:
SyntaxError: unknown: Support for the experimental syntax 'exportDefaultFrom' isn't currently enabled (11:8):

//issue (2) export { lowercaseString, uppercaseString}
After removing the export from the individual lowercaseString and uppercaseString, this referenceError persists.
This causes error:
ReferenceError: exports is not defined


/* Issue (3)
Running the test without any export causes it to pass the tests.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36.

Challenge: Use export to Share a Code Block

Link to the challenge:

It will pass with all those comments included, because the test is looking at the text in the editor and doesn’t always know if it’s inside a comment block. If you just reset the code so that it only has the original two functions, the tests will not pass.

1 Like