{"action":"created","comment":{"url":"https://api.github.com/repos/xitu/javascript-tutorial-en/pulls/comments/183385666","pull_request_review_id":114207384,"id":183385666,"diff_hunk":"@@ -217,29 +217,28 @@ typeof alert // \"function\"  (3)\n */!*\n ```\n \n-The last three lines may need additional explanations:\n+最后三行可能需要额外的说明：\n \n-1. `Math` is a built-in object that provides mathematical operations. We will learn it in the chapter <info:number>. Here it serves just as an example of an object.\n-2. The result of `typeof null` is `\"object\"`. That's wrong. It is an officially recognized error in `typeof`, kept for compatibility. Of course, `null` is not an object. It is a special value with a separate type of its own. So, again, that's an error in the language.\n-3. The result of `typeof alert` is `\"function\"`, because `alert` is a function of the language. We'll study functions in the next chapters, and we'll see that there's no special \"function\" type in the language. Functions belong to the object type. But `typeof` treats them differently. Formally, it's incorrect, but very convenient in practice.\n+1. `Math` 是一个提供数学运算的内建对象。我们会在章节 <info:number> 学习它。此处作为一个对象的例子。\n+2. `typeof null` 的结果是 `\"object\"`。这是不对的。这是一个官方承认的错误，为了兼容性而保留。当然，`null` 不是一个对象。它有自己的类型，是一个特殊值。再次强调，这是语言中的一个错误。\n+3. `typeof alert` 的结果是 `\"function\"`，因为 `alert` 在语言中是一个函数。我们会在下一章学习函数，那时我们会了解到，在语言中没有一个特别的 “function” 类型。函数隶属于 object 类型。但是 `typeof` 对函数区分对待。这不正确，但在实践中非常方便。\n \n+## 总结","path":"1-js/02-first-steps/05-types/article.md","position":277,"original_position":277,"commit_id":"d3704412bcc441e6a79da4a3c2ec590c2ab9236b","original_commit_id":"d3704412bcc441e6a79da4a3c2ec590c2ab9236b","user":{"login":"Starriers","id":24243206,"avatar_url":"https://avatars2.githubusercontent.com/u/24243206?v=4","gravatar_id":"","url":"https://api.github.com/users/Starriers","html_url":"https://github.com/Starriers","followers_url":"https://api.github.com/users/Starriers/followers","following_url":"https://api.github.com/users/Starriers/following{/other_user}","gists_url":"https://api.github.com/users/Starriers/gists{/gist_id}","starred_url":"https://api.github.com/users/Starriers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starriers/subscriptions","organizations_url":"https://api.github.com/users/Starriers/orgs","repos_url":"https://api.github.com/users/Starriers/repos","events_url":"https://api.github.com/users/Starriers/events{/privacy}","received_events_url":"https://api.github.com/users/Starriers/received_events","type":"User","site_admin":false},"body":"上面再空一行 ，不然下面的结构就乱了","created_at":"2018-04-23T13:02:35Z","updated_at":"2018-04-23T13:07:06Z","html_url":"https://github.com/xitu/javascript-tutorial-en/pull/33#discussion_r183385666","pull_request_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/pulls/33","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/xitu/javascript-tutorial-en/pulls/comments/183385666"},"html":{"href":"https://github.com/xitu/javascript-tutorial-en/pull/33#discussion_r183385666"},"pull_request":{"href":"https://api.github.com/repos/xitu/javascript-tutorial-en/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/xitu/javascript-tutorial-en/pulls/33","id":180333817,"html_url":"https://github.com/xitu/javascript-tutorial-en/pull/33","diff_url":"https://github.com/xitu/javascript-tutorial-en/pull/33.diff","patch_url":"https://github.com/xitu/javascript-tutorial-en/pull/33.patch","issue_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/issues/33","number":33,"state":"open","locked":false,"title":"1-js/02-first-steps/05-types","user":{"login":"sqrthree","id":8622362,"avatar_url":"https://avatars2.githubusercontent.com/u/8622362?v=4","gravatar_id":"","url":"https://api.github.com/users/sqrthree","html_url":"https://github.com/sqrthree","followers_url":"https://api.github.com/users/sqrthree/followers","following_url":"https://api.github.com/users/sqrthree/following{/other_user}","gists_url":"https://api.github.com/users/sqrthree/gists{/gist_id}","starred_url":"https://api.github.com/users/sqrthree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sqrthree/subscriptions","organizations_url":"https://api.github.com/users/sqrthree/orgs","repos_url":"https://api.github.com/users/sqrthree/repos","events_url":"https://api.github.com/users/sqrthree/events{/privacy}","received_events_url":"https://api.github.com/users/sqrthree/received_events","type":"User","site_admin":false},"body":"Co-authored-by: maoxiaoke <thebigyellowbee@qq.com>\r\n\r\nCc @maoxiaoke\r\n\r\nresolve #5","created_at":"2018-04-09T14:48:53Z","updated_at":"2018-04-23T13:07:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"735f4a597d9fd54ee007331eda00f6f8a02f389a","assignee":{"login":"sqrthree","id":8622362,"avatar_url":"https://avatars2.githubusercontent.com/u/8622362?v=4","gravatar_id":"","url":"https://api.github.com/users/sqrthree","html_url":"https://github.com/sqrthree","followers_url":"https://api.github.com/users/sqrthree/followers","following_url":"https://api.github.com/users/sqrthree/following{/other_user}","gists_url":"https://api.github.com/users/sqrthree/gists{/gist_id}","starred_url":"https://api.github.com/users/sqrthree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sqrthree/subscriptions","organizations_url":"https://api.github.com/users/sqrthree/orgs","repos_url":"https://api.github.com/users/sqrthree/repos","events_url":"https://api.github.com/users/sqrthree/events{/privacy}","received_events_url":"https://api.github.com/users/sqrthree/received_events","type":"User","site_admin":false},"assignees":[{"login":"sqrthree","id":8622362,"avatar_url":"https://avatars2.githubusercontent.com/u/8622362?v=4","gravatar_id":"","url":"https://api.github.com/users/sqrthree","html_url":"https://github.com/sqrthree","followers_url":"https://api.github.com/users/sqrthree/followers","following_url":"https://api.github.com/users/sqrthree/following{/other_user}","gists_url":"https://api.github.com/users/sqrthree/gists{/gist_id}","starred_url":"https://api.github.com/users/sqrthree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sqrthree/subscriptions","organizations_url":"https://api.github.com/users/sqrthree/orgs","repos_url":"https://api.github.com/users/sqrthree/repos","events_url":"https://api.github.com/users/sqrthree/events{/privacy}","received_events_url":"https://api.github.com/users/sqrthree/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":889535141,"url":"https://api.github.com/repos/xitu/javascript-tutorial-en/labels/%E6%A0%A1%E5%AF%B9%E8%AE%A4%E9%A2%86","name":"校对认领","color":"7057ff","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/pulls/33/commits","review_comments_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/pulls/33/comments","review_comment_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/issues/33/comments","statuses_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/statuses/d3704412bcc441e6a79da4a3c2ec590c2ab9236b","head":{"label":"xitu:transfer/types","ref":"transfer/types","sha":"d3704412bcc441e6a79da4a3c2ec590c2ab9236b","user":{"login":"xitu","id":10482599,"avatar_url":"https://avatars2.githubusercontent.com/u/10482599?v=4","gravatar_id":"","url":"https://api.github.com/users/xitu","html_url":"https://github.com/xitu","followers_url":"https://api.github.com/users/xitu/followers","following_url":"https://api.github.com/users/xitu/following{/other_user}","gists_url":"https://api.github.com/users/xitu/gists{/gist_id}","starred_url":"https://api.github.com/users/xitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xitu/subscriptions","organizations_url":"https://api.github.com/users/xitu/orgs","repos_url":"https://api.github.com/users/xitu/repos","events_url":"https://api.github.com/users/xitu/events{/privacy}","received_events_url":"https://api.github.com/users/xitu/received_events","type":"Organization","site_admin":false},"repo":{"id":128014656,"name":"javascript-tutorial-en","full_name":"xitu/javascript-tutorial-en","owner":{"login":"xitu","id":10482599,"avatar_url":"https://avatars2.githubusercontent.com/u/10482599?v=4","gravatar_id":"","url":"https://api.github.com/users/xitu","html_url":"https://github.com/xitu","followers_url":"https://api.github.com/users/xitu/followers","following_url":"https://api.github.com/users/xitu/following{/other_user}","gists_url":"https://api.github.com/users/xitu/gists{/gist_id}","starred_url":"https://api.github.com/users/xitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xitu/subscriptions","organizations_url":"https://api.github.com/users/xitu/orgs","repos_url":"https://api.github.com/users/xitu/repos","events_url":"https://api.github.com/users/xitu/events{/privacy}","received_events_url":"https://api.github.com/users/xitu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xitu/javascript-tutorial-en","description":"Modern JavaScript Tutorial ","fork":true,"url":"https://api.github.com/repos/xitu/javascript-tutorial-en","forks_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/forks","keys_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/teams","hooks_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/hooks","issue_events_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/issues/events{/number}","events_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/events","assignees_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/assignees{/user}","branches_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/branches{/branch}","tags_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/tags","blobs_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/git/refs{/sha}","trees_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/statuses/{sha}","languages_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/languages","stargazers_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/stargazers","contributors_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/contributors","subscribers_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/subscribers","subscription_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/subscription","commits_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/commits{/sha}","git_commits_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/git/commits{/sha}","comments_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/comments{/number}","issue_comment_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/issues/comments{/number}","contents_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/contents/{+path}","compare_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/merges","archive_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/downloads","issues_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/issues{/number}","pulls_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/pulls{/number}","milestones_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/milestones{/number}","notifications_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/labels{/name}","releases_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/releases{/id}","deployments_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/deployments","created_at":"2018-04-04T06:01:58Z","updated_at":"2018-04-23T05:20:54Z","pushed_at":"2018-04-23T13:04:20Z","git_url":"git://github.com/xitu/javascript-tutorial-en.git","ssh_url":"git@github.com:xitu/javascript-tutorial-en.git","clone_url":"https://github.com/xitu/javascript-tutorial-en.git","svn_url":"https://github.com/xitu/javascript-tutorial-en","homepage":"https://javascript.info","size":434206,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":41,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":12,"open_issues":41,"watchers":4,"default_branch":"zh-hans"}},"base":{"label":"xitu:zh-hans","ref":"zh-hans","sha":"ee5930f7a3cd48ea6aa329551920270291ed7b83","user":{"login":"xitu","id":10482599,"avatar_url":"https://avatars2.githubusercontent.com/u/10482599?v=4","gravatar_id":"","url":"https://api.github.com/users/xitu","html_url":"https://github.com/xitu","followers_url":"https://api.github.com/users/xitu/followers","following_url":"https://api.github.com/users/xitu/following{/other_user}","gists_url":"https://api.github.com/users/xitu/gists{/gist_id}","starred_url":"https://api.github.com/users/xitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xitu/subscriptions","organizations_url":"https://api.github.com/users/xitu/orgs","repos_url":"https://api.github.com/users/xitu/repos","events_url":"https://api.github.com/users/xitu/events{/privacy}","received_events_url":"https://api.github.com/users/xitu/received_events","type":"Organization","site_admin":false},"repo":{"id":128014656,"name":"javascript-tutorial-en","full_name":"xitu/javascript-tutorial-en","owner":{"login":"xitu","id":10482599,"avatar_url":"https://avatars2.githubusercontent.com/u/10482599?v=4","gravatar_id":"","url":"https://api.github.com/users/xitu","html_url":"https://github.com/xitu","followers_url":"https://api.github.com/users/xitu/followers","following_url":"https://api.github.com/users/xitu/following{/other_user}","gists_url":"https://api.github.com/users/xitu/gists{/gist_id}","starred_url":"https://api.github.com/users/xitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xitu/subscriptions","organizations_url":"https://api.github.com/users/xitu/orgs","repos_url":"https://api.github.com/users/xitu/repos","events_url":"https://api.github.com/users/xitu/events{/privacy}","received_events_url":"https://api.github.com/users/xitu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xitu/javascript-tutorial-en","description":"Modern JavaScript Tutorial ","fork":true,"url":"https://api.github.com/repos/xitu/javascript-tutorial-en","forks_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/forks","keys_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/teams","hooks_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/hooks","issue_events_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/issues/events{/number}","events_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/events","assignees_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/assignees{/user}","branches_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/branches{/branch}","tags_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/tags","blobs_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/git/refs{/sha}","trees_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/statuses/{sha}","languages_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/languages","stargazers_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/stargazers","contributors_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/contributors","subscribers_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/subscribers","subscription_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/subscription","commits_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/commits{/sha}","git_commits_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/git/commits{/sha}","comments_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/comments{/number}","issue_comment_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/issues/comments{/number}","contents_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/contents/{+path}","compare_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/merges","archive_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/downloads","issues_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/issues{/number}","pulls_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/pulls{/number}","milestones_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/milestones{/number}","notifications_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/labels{/name}","releases_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/releases{/id}","deployments_url":"https://api.github.com/repos/xitu/javascript-tutorial-en/deployments","created_at":"2018-04-04T06:01:58Z","updated_at":"2018-04-23T05:20:54Z","pushed_at":"2018-04-23T13:04:20Z","git_url":"git://github.com/xitu/javascript-tutorial-en.git","ssh_url":"git@github.com:xitu/javascript-tutorial-en.git","clone_url":"https://github.com/xitu/javascript-tutorial-en.git","svn_url":"https://github.com/xitu/javascript-tutorial-en","homepage":"https://javascript.info","size":434206,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":41,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":12,"open_issues":41,"watchers":4,"default_branch":"zh-hans"}},"_links":{"self":{"href":"https://api.github.com/repos/xitu/javascript-tutorial-en/pulls/33"},"html":{"href":"https://github.com/xitu/javascript-tutorial-en/pull/33"},"issue":{"href":"https://api.github.com/repos/xitu/javascript-tutorial-en/issues/33"},"comments":{"href":"https://api.github.com/repos/xitu/javascript-tutorial-en/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/xitu/javascript-tutorial-en/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/xitu/javascript-tutorial-en/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xitu/javascript-tutorial-en/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/xitu/javascript-tutorial-en/statuses/d3704412bcc441e6a79da4a3c2ec590c2ab9236b"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Starriers"}}