Skip to content

Instantly share code, notes, and snippets.

@jcppman
Last active September 2, 2017 04: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 jcppman/baa02c885bbfe1c782706d0e5687c871 to your computer and use it in GitHub Desktop.
Save jcppman/baa02c885bbfe1c782706d0e5687c871 to your computer and use it in GitHub Desktop.
KT Quiz Codes
// Option 1
export { myFunc as getMe }
// Option 2
export const muffler = { HOLY: 'GRAIL' };
// Option 3
export default {
muffler: muffler,
gangster: 'Zup!',
};
// Option 4
export { hello, myPal as friend } from 'gibson';
// Option 5
export * from 'bank';
// Option 1
import * as buffalo from 'farm/buffalo';
// Option 2
import { MyLord } from 'gensengPark';
// Option 3
import cowboys from 'hell'
// Option 4
import { Penguin as Slave } from 'Antarctica';
// Option 5
import * from 'Africa';
// Option 1
import acg from 'localBucket';
import { MelloBump } from 'MouseN';
export function helloMyDar() {
console.log('hello')
}
export default {
helloMyDar: helloMyDar,
}
// Option 2
const acg = require('localBucket');
const MelloBump = require('MouseN').MelloBump;
function helloMyDar() {
console.log('hello');
}
exports.helloMyDar = helloMyDar;
// Option 3
const acg = window.localBucket;
const MelloBump = window.MouseN.MelloBump;
function helloMyDar() {
console.log('hello');
}
window.helloMyDar = helloMyDar
// Option 4
define(['localBucket', 'MouseN'], function(localBucket, MouseN) {
const MelloBump = MouseN.MelloBump;
function helloMyDar() {
console.log('hello');
}
return {
helloMyDar
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment