Challenge: ES6: Use export to Reuse a Code Block

Challenge: ES6: Use export to Reuse a Code Block
0

#1

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”)


#2

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.


#3

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

Cheers


#4

Nah, they both work fine