Created
June 26, 2016 23:01
-
-
Save cenan/77b648176225b75b3726b0a8ac70a06d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {add, sub} from "./ops.js"; | |
add(1,2); | |
import ops from "./ops.js" | |
ops.add(1,2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ops = { | |
add: function(x,y) { return x + y; }, | |
sub: function(x,y) { return x - y; } | |
} | |
export default ops; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment