ES6: Create an Export Fallback with export default question1234

Tell us what’s happening:
Can someone tell me why my code isnt running?

Your code so far


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

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 9; LM-X420) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.127 Mobile Safari/537.36.

Challenge: Create an Export Fallback with export default

Link to the challenge:

1 Like

You’ve defined your function twice…
Just make the export the given function, don’t create another one