Challenge: ES6: Use export to Reuse a Code Block

I’ve spent quite sometime on this challenge trying to figure out why my code was not working just to notice that:
The following will not work:

"use strict";
export const foo = "bar";
export const bar= "foo";

while the following will work:

"use strict";
export const foo = "bar";
export const bar = "foo";

(The difference is the space after “bar”)

4 Likes

Bugs should always 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.

2 Likes

Thanks Tchoukoualeu, I was trying to figure out why the code wouldn’t work for a while.

Cheers

1 Like

Nah, they both work fine