// the module and two functions are exported
export const print(message) => log(message, new Date())
export const log(message, timestamp) =>
console.log(`${timestamp.toString()}: ${message}`)
// one variable is exported from a module
const freel = new Expedition("Mt. Freel", 2, ["water", "snack"])
export default freel
// modules can be used in other JavaScript files using the import statement
// modules with multiple exports can utilise object destructuring
// modules that use export default are imported into a single variable
import {print, log} from './text-helpers'
import freel from './mt-freel'
// modules can be scoped locally under different variable names
import { print as p, log as l} from './text-helpers'
// can also import everything as a single variable
import * as fns from './text-helpers'