Skip to content

Instantly share code, notes, and snippets.

View elalaouifaris's full-sized avatar

Moulay Driss EL ALAOUI FARIS elalaouifaris

View GitHub Profile
@elalaouifaris
elalaouifaris / es6_modules.js
Created January 14, 2016 10:33 — forked from zaiste/es6_modules.js
AngularJS Workshop
// module 1
export const sqrt = Math.sqrt;
export function square(x) {
return x * x;
}
export function diag(x, y) {
return sqrt(square(x) + square(y));
}
// importing from module 1 : named