Skip to content

Instantly share code, notes, and snippets.

@dandiebolt
Created December 27, 2018 21:10
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 dandiebolt/5357d0c86cbdd17f96734001903026f1 to your computer and use it in GitHub Desktop.
Save dandiebolt/5357d0c86cbdd17f96734001903026f1 to your computer and use it in GitHub Desktop.
// module "my-module.js"
function cube(x) {
return x * x * x;
}
const foo = Math.PI + Math.SQRT2;
var graph = {
options: {
color:'white',
thickness:'2px'
},
draw: function() {
console.log('From graph draw function');
}
}
export { cube, foo, graph };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment