Last active
September 2, 2017 04:10
-
-
Save jcppman/baa02c885bbfe1c782706d0e5687c871 to your computer and use it in GitHub Desktop.
KT Quiz Codes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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