{"action":"opened","issue":{"url":"https://api.github.com/repos/jirengu-inc/jrg-vip10/issues/23","repository_url":"https://api.github.com/repos/jirengu-inc/jrg-vip10","labels_url":"https://api.github.com/repos/jirengu-inc/jrg-vip10/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/jirengu-inc/jrg-vip10/issues/23/comments","events_url":"https://api.github.com/repos/jirengu-inc/jrg-vip10/issues/23/events","html_url":"https://github.com/jirengu-inc/jrg-vip10/issues/23","id":199772122,"number":23,"title":"15-运算符","user":{"login":"jirengu","id":10908527,"avatar_url":"https://avatars.githubusercontent.com/u/10908527?v=3","gravatar_id":"","url":"https://api.github.com/users/jirengu","html_url":"https://github.com/jirengu","followers_url":"https://api.github.com/users/jirengu/followers","following_url":"https://api.github.com/users/jirengu/following{/other_user}","gists_url":"https://api.github.com/users/jirengu/gists{/gist_id}","starred_url":"https://api.github.com/users/jirengu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirengu/subscriptions","organizations_url":"https://api.github.com/users/jirengu/orgs","repos_url":"https://api.github.com/users/jirengu/repos","events_url":"https://api.github.com/users/jirengu/events{/privacy}","received_events_url":"https://api.github.com/users/jirengu/received_events","type":"User","site_admin":false},"labels":[{"id":483238074,"url":"https://api.github.com/repos/jirengu-inc/jrg-vip10/labels/%E4%BD%9C%E4%B8%9A","name":"作业","color":"ee0701","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-10T09:33:25Z","updated_at":"2017-01-10T09:33:25Z","closed_at":null,"body":"## 课程视频\r\n见[官网](http://jirengu.com) \r\n## 课程作业\r\n1. 以下代码的输出结果是? 为什么\r\n```javascript\r\nvar a = 1;\r\na+++a; \r\n```\r\n2. 以下代码的输出结果是? 为什么\r\n```javascript\r\n var a = 1;\r\n var b = 3;\r\n console.log( a+++b ); \r\n```\r\n3. void 0 和 undefined在使用场景上有什么区别?\r\n4. 以下代码输出结果是? 为什么\r\n```javascript\r\nvar a = 1, b = 2, c = 3;\r\nvar val = typeof a + b || c >0\r\nconsole.log(val) \r\n\r\nvar d = 5;\r\nvar data = d ==5 && console.log('bb')\r\nconsole.log(data)\r\n\r\nvar data2 = d = 0 || console.log('haha')\r\nconsole.log(data2)\r\n \r\nvar x = !!\"Hello\" + (!\"world\", !!\"from here!!\");\r\nconsole.log(x)\r\n\r\n```\r\n5. 遍历数组，把数组里的打印数组每一项的平方**\r\n```\r\n var arr = [3,4,5] \r\nfor(var i=0;i<arr.length;i++){\r\nconsole.log(Math.pow(arr[i],2));\r\n}// todo.. \r\n// 输出 9, 16, 25\r\n```\r\n6. 遍历 JSON, 打印里面的值 （难度**）\r\n```javascript\r\nvar obj = {\r\n name: 'hunger', \r\n sex: 'male', \r\n age: 28 \r\n} \r\n```\r\n\r\n\r\n本文为饥人谷内部课程教程，谢绝转载，咨询课程可联系教导员青青: QQ2054185664，或者进入[饥人谷](http://jirengu.com)查看"}}
{"actor":{"display_login":"jirengu"}}