I"m working on ES6 lessons using Import and Export. I’ve skipped over lessons which I can’t pass test.
For this example on “Import a Default Export”:
My code:
import subtract from 'math_functions'
subtract(7,4);```
![image|690x42](upload://vNeoWxIIBCgjJiIjIv9KDrICRJV.png)
In case the image is not viewable.
The console says:
// running test
Properly imports export default method.
// tests completed
but the test failed on : Properly imports export default method.
When I add `./` to the file, the console gives error.
**I figured out my mistake. I need double quotes and semi-colon.**
import subtract from “math_functions”;
subtract(7,4);