{"action":"created","comment":{"url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/pulls/comments/28224514","id":28224514,"diff_hunk":"@@ -0,0 +1,102 @@\n+전에 모듈에 관한 설명을 했습니다만, export에는 두 종류가 있습니다. 일반적인 export와 default export입니다.\n+차이에 관해 설명하겠습니다. 밑의 JavaScript는 전의 이름을 쓰는 export를 사용하고 있습니다.\n+\n+```javascript\n+// Message.js\n+const greeting = 'Hello';\n+const name = 'Babel';\n+const version = 'v5.0';\n+export const obj = {\n+  greeting: greeting,\n+  name: name,\n+  version: version\n+};\n+```\n+\n+또, import하는 쪽은 export한 대상의 이름을 지정합니다.\n+\n+```javascript\n+import {obj} from './Message';\n+console.log(obj.greeting + ' ' + obj.name + ' ' + obj.version); // Hello Babel v5.0\n+```\n+\n+default export는 이것과 다르게, export할 때에 `export default` 구문을 붙여 공개합니다. 이렇게 사용할 수 있습니다.\n+\n+```javascript\n+// Message.js\n+const greeting = 'Hello';\n+const name = 'Babel';\n+const version = 'v5.0';\n+export default {\n+  greeting: greeting,\n+  name: name,\n+  version: version\n+};\n+```\n+\n+또, import하는 쪽은 이렇게 됩니다.\n+\n+```javascript\n+import Message from './Message';\n+console.log(\n+  Message.greeting + ' ' + Message.name + ' ' + Message.version); //Hello Babel v5.0\n+```\n+\n+앞의 것과의 차이를 아시겠나요? default export로 export한 경우는, import할 때 import의 대상을 대괄호 `{...}`로 감쌀 필요가 없이, export된 대상의 이름을 알 필요가 없습니다.\n+\n+이것은 commonjs의 `module.exports`를 사용해 밑에 있는 것처럼 적었을 때와 비슷합니다.\n+\n+```javascript\n+const greeting = 'Hello';\n+const name = 'Babel';\n+const version = 'v5.0';\n+module.exports = {\n+  greeting: greeting,\n+  name: name,\n+  version: version\n+};\n+```\n+\n+Node.js에서 module.exports를 사용해 module 을 분리하는 것 처럼 ES6에서도 이 `export default`를 사용해 간단히 모듈을 분리할 수 있습니다.","path":"exercises/modules_default_export/problem.ko.md","position":60,"original_position":60,"commit_id":"6dc9fe22ee350d4b502cb22b780885298f9540e3","original_commit_id":"6dc9fe22ee350d4b502cb22b780885298f9540e3","user":{"login":"yous","id":853977,"avatar_url":"https://avatars.githubusercontent.com/u/853977?v=3","gravatar_id":"","url":"https://api.github.com/users/yous","html_url":"https://github.com/yous","followers_url":"https://api.github.com/users/yous/followers","following_url":"https://api.github.com/users/yous/following{/other_user}","gists_url":"https://api.github.com/users/yous/gists{/gist_id}","starred_url":"https://api.github.com/users/yous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yous/subscriptions","organizations_url":"https://api.github.com/users/yous/orgs","repos_url":"https://api.github.com/users/yous/repos","events_url":"https://api.github.com/users/yous/events{/privacy}","received_events_url":"https://api.github.com/users/yous/received_events","type":"User","site_admin":false},"body":"module 을 → module을\r\n것 처럼 → 것처럼","created_at":"2015-04-13T09:22:55Z","updated_at":"2015-04-13T09:22:55Z","html_url":"https://github.com/yosuke-furukawa/tower-of-babel/pull/23#discussion_r28224514","pull_request_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/pulls/comments/28224514"},"html":{"href":"https://github.com/yosuke-furukawa/tower-of-babel/pull/23#discussion_r28224514"},"pull_request":{"href":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/pulls/23","id":33140120,"html_url":"https://github.com/yosuke-furukawa/tower-of-babel/pull/23","diff_url":"https://github.com/yosuke-furukawa/tower-of-babel/pull/23.diff","patch_url":"https://github.com/yosuke-furukawa/tower-of-babel/pull/23.patch","issue_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/issues/23","number":23,"state":"open","locked":false,"title":"Add Korean Translation","user":{"login":"marocchino","id":128431,"avatar_url":"https://avatars.githubusercontent.com/u/128431?v=3","gravatar_id":"","url":"https://api.github.com/users/marocchino","html_url":"https://github.com/marocchino","followers_url":"https://api.github.com/users/marocchino/followers","following_url":"https://api.github.com/users/marocchino/following{/other_user}","gists_url":"https://api.github.com/users/marocchino/gists{/gist_id}","starred_url":"https://api.github.com/users/marocchino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marocchino/subscriptions","organizations_url":"https://api.github.com/users/marocchino/orgs","repos_url":"https://api.github.com/users/marocchino/repos","events_url":"https://api.github.com/users/marocchino/events{/privacy}","received_events_url":"https://api.github.com/users/marocchino/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-13T07:10:30Z","updated_at":"2015-04-13T09:22:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"934be85e07451b5cd0a477ef4a20bfb0adfd0daa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/pulls/23/commits","review_comments_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/pulls/23/comments","review_comment_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/issues/23/comments","statuses_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/statuses/6dc9fe22ee350d4b502cb22b780885298f9540e3","head":{"label":"marocchino:korean","ref":"korean","sha":"6dc9fe22ee350d4b502cb22b780885298f9540e3","user":{"login":"marocchino","id":128431,"avatar_url":"https://avatars.githubusercontent.com/u/128431?v=3","gravatar_id":"","url":"https://api.github.com/users/marocchino","html_url":"https://github.com/marocchino","followers_url":"https://api.github.com/users/marocchino/followers","following_url":"https://api.github.com/users/marocchino/following{/other_user}","gists_url":"https://api.github.com/users/marocchino/gists{/gist_id}","starred_url":"https://api.github.com/users/marocchino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marocchino/subscriptions","organizations_url":"https://api.github.com/users/marocchino/orgs","repos_url":"https://api.github.com/users/marocchino/repos","events_url":"https://api.github.com/users/marocchino/events{/privacy}","received_events_url":"https://api.github.com/users/marocchino/received_events","type":"User","site_admin":false},"repo":{"id":33808336,"name":"tower-of-babel","full_name":"marocchino/tower-of-babel","owner":{"login":"marocchino","id":128431,"avatar_url":"https://avatars.githubusercontent.com/u/128431?v=3","gravatar_id":"","url":"https://api.github.com/users/marocchino","html_url":"https://github.com/marocchino","followers_url":"https://api.github.com/users/marocchino/followers","following_url":"https://api.github.com/users/marocchino/following{/other_user}","gists_url":"https://api.github.com/users/marocchino/gists{/gist_id}","starred_url":"https://api.github.com/users/marocchino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marocchino/subscriptions","organizations_url":"https://api.github.com/users/marocchino/orgs","repos_url":"https://api.github.com/users/marocchino/repos","events_url":"https://api.github.com/users/marocchino/events{/privacy}","received_events_url":"https://api.github.com/users/marocchino/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marocchino/tower-of-babel","description":"Tower of babel is tour of babel","fork":true,"url":"https://api.github.com/repos/marocchino/tower-of-babel","forks_url":"https://api.github.com/repos/marocchino/tower-of-babel/forks","keys_url":"https://api.github.com/repos/marocchino/tower-of-babel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marocchino/tower-of-babel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marocchino/tower-of-babel/teams","hooks_url":"https://api.github.com/repos/marocchino/tower-of-babel/hooks","issue_events_url":"https://api.github.com/repos/marocchino/tower-of-babel/issues/events{/number}","events_url":"https://api.github.com/repos/marocchino/tower-of-babel/events","assignees_url":"https://api.github.com/repos/marocchino/tower-of-babel/assignees{/user}","branches_url":"https://api.github.com/repos/marocchino/tower-of-babel/branches{/branch}","tags_url":"https://api.github.com/repos/marocchino/tower-of-babel/tags","blobs_url":"https://api.github.com/repos/marocchino/tower-of-babel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marocchino/tower-of-babel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marocchino/tower-of-babel/git/refs{/sha}","trees_url":"https://api.github.com/repos/marocchino/tower-of-babel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marocchino/tower-of-babel/statuses/{sha}","languages_url":"https://api.github.com/repos/marocchino/tower-of-babel/languages","stargazers_url":"https://api.github.com/repos/marocchino/tower-of-babel/stargazers","contributors_url":"https://api.github.com/repos/marocchino/tower-of-babel/contributors","subscribers_url":"https://api.github.com/repos/marocchino/tower-of-babel/subscribers","subscription_url":"https://api.github.com/repos/marocchino/tower-of-babel/subscription","commits_url":"https://api.github.com/repos/marocchino/tower-of-babel/commits{/sha}","git_commits_url":"https://api.github.com/repos/marocchino/tower-of-babel/git/commits{/sha}","comments_url":"https://api.github.com/repos/marocchino/tower-of-babel/comments{/number}","issue_comment_url":"https://api.github.com/repos/marocchino/tower-of-babel/issues/comments{/number}","contents_url":"https://api.github.com/repos/marocchino/tower-of-babel/contents/{+path}","compare_url":"https://api.github.com/repos/marocchino/tower-of-babel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marocchino/tower-of-babel/merges","archive_url":"https://api.github.com/repos/marocchino/tower-of-babel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marocchino/tower-of-babel/downloads","issues_url":"https://api.github.com/repos/marocchino/tower-of-babel/issues{/number}","pulls_url":"https://api.github.com/repos/marocchino/tower-of-babel/pulls{/number}","milestones_url":"https://api.github.com/repos/marocchino/tower-of-babel/milestones{/number}","notifications_url":"https://api.github.com/repos/marocchino/tower-of-babel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marocchino/tower-of-babel/labels{/name}","releases_url":"https://api.github.com/repos/marocchino/tower-of-babel/releases{/id}","created_at":"2015-04-12T07:58:24Z","updated_at":"2015-04-12T07:58:24Z","pushed_at":"2015-04-13T07:10:09Z","git_url":"git://github.com/marocchino/tower-of-babel.git","ssh_url":"git@github.com:marocchino/tower-of-babel.git","clone_url":"https://github.com/marocchino/tower-of-babel.git","svn_url":"https://github.com/marocchino/tower-of-babel","homepage":"","size":389,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yosuke-furukawa:master","ref":"master","sha":"e05468272391b807632a7637155a39c1290b4923","user":{"login":"yosuke-furukawa","id":555645,"avatar_url":"https://avatars.githubusercontent.com/u/555645?v=3","gravatar_id":"","url":"https://api.github.com/users/yosuke-furukawa","html_url":"https://github.com/yosuke-furukawa","followers_url":"https://api.github.com/users/yosuke-furukawa/followers","following_url":"https://api.github.com/users/yosuke-furukawa/following{/other_user}","gists_url":"https://api.github.com/users/yosuke-furukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/yosuke-furukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosuke-furukawa/subscriptions","organizations_url":"https://api.github.com/users/yosuke-furukawa/orgs","repos_url":"https://api.github.com/users/yosuke-furukawa/repos","events_url":"https://api.github.com/users/yosuke-furukawa/events{/privacy}","received_events_url":"https://api.github.com/users/yosuke-furukawa/received_events","type":"User","site_admin":false},"repo":{"id":33443348,"name":"tower-of-babel","full_name":"yosuke-furukawa/tower-of-babel","owner":{"login":"yosuke-furukawa","id":555645,"avatar_url":"https://avatars.githubusercontent.com/u/555645?v=3","gravatar_id":"","url":"https://api.github.com/users/yosuke-furukawa","html_url":"https://github.com/yosuke-furukawa","followers_url":"https://api.github.com/users/yosuke-furukawa/followers","following_url":"https://api.github.com/users/yosuke-furukawa/following{/other_user}","gists_url":"https://api.github.com/users/yosuke-furukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/yosuke-furukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosuke-furukawa/subscriptions","organizations_url":"https://api.github.com/users/yosuke-furukawa/orgs","repos_url":"https://api.github.com/users/yosuke-furukawa/repos","events_url":"https://api.github.com/users/yosuke-furukawa/events{/privacy}","received_events_url":"https://api.github.com/users/yosuke-furukawa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yosuke-furukawa/tower-of-babel","description":"Tower of babel is tour of babel","fork":false,"url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel","forks_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/forks","keys_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/teams","hooks_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/hooks","issue_events_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/issues/events{/number}","events_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/events","assignees_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/assignees{/user}","branches_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/branches{/branch}","tags_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/tags","blobs_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/git/refs{/sha}","trees_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/statuses/{sha}","languages_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/languages","stargazers_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/stargazers","contributors_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/contributors","subscribers_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/subscribers","subscription_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/subscription","commits_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/commits{/sha}","git_commits_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/git/commits{/sha}","comments_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/comments{/number}","issue_comment_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/issues/comments{/number}","contents_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/contents/{+path}","compare_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/merges","archive_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/downloads","issues_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/issues{/number}","pulls_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/pulls{/number}","milestones_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/milestones{/number}","notifications_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/labels{/name}","releases_url":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/releases{/id}","created_at":"2015-04-05T14:30:10Z","updated_at":"2015-04-12T15:57:10Z","pushed_at":"2015-04-13T07:10:30Z","git_url":"git://github.com/yosuke-furukawa/tower-of-babel.git","ssh_url":"git@github.com:yosuke-furukawa/tower-of-babel.git","clone_url":"https://github.com/yosuke-furukawa/tower-of-babel.git","svn_url":"https://github.com/yosuke-furukawa/tower-of-babel","homepage":"","size":389,"stargazers_count":45,"watchers_count":45,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":7,"forks":8,"open_issues":7,"watchers":45,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/pulls/23"},"html":{"href":"https://github.com/yosuke-furukawa/tower-of-babel/pull/23"},"issue":{"href":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/issues/23"},"comments":{"href":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/yosuke-furukawa/tower-of-babel/statuses/6dc9fe22ee350d4b502cb22b780885298f9540e3"}}}}