I followed this but it seem to not pass Create an Export Fallback with export default

Tell us what’s happening:

Your code so far



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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36.

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

Your semi-colon is after the closing bracket of function rather than at the end of the return statement. This is a common mistake that will be covered in the debugging section. In addition you have moved the whole code block to come before ‘use strict’ statement. If after correcting the above mentioned problems, the code still does not pass then you will have to reset the code and add just the ‘export default’ statement. The test code for the ES6 module has many bugs and the chances are that your code won’t pass unless it matches the expected output exactly. In the coming challenges don’t alter the default code snippet given with every challenge, as that may prevent your code from passing due to the issue mentioned above.