Skip to content

Instantly share code, notes, and snippets.

@cenan
Created June 26, 2016 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cenan/77b648176225b75b3726b0a8ac70a06d to your computer and use it in GitHub Desktop.
Save cenan/77b648176225b75b3726b0a8ac70a06d to your computer and use it in GitHub Desktop.
import {add, sub} from "./ops.js";
add(1,2);
import ops from "./ops.js"
ops.add(1,2);
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