Create an Export Fallback with export default Bug?

Tell us what’s happening:
Placing a space after the comma stops me from completing the test case
e.g.
works

export default function subtract(x,y) {return x - y;}

doesn’t work

export default function subtract(x, y) {return x - y;}

Your code so far


"use strict";

export default function subtract(x, y) {return x - y;}

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/create-an-export-fallback-with-export-default/

Make sure there is no space between your parameters. Between x and y.

It should pass nonetheless but this is a bug.

1 Like