Skip to content

Instantly share code, notes, and snippets.

@triptych
Created August 30, 2021 00:48
Show Gist options
  • Save triptych/df87cf85a3e1e7eca063df0f51b613cf to your computer and use it in GitHub Desktop.
Save triptych/df87cf85a3e1e7eca063df0f51b613cf to your computer and use it in GitHub Desktop.
testing a javascript es6 module
export const sqrt = Math.sqrt;
export function square(x) {
return x * x;
}
export function diag(x, y) {
return sqrt(square(x) + square(y));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment