{"action":"closed","issue":{"url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/1064","repository_url":"https://api.github.com/repos/da2k/curso-javascript-ninja","labels_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/1064/labels{/name}","comments_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/1064/comments","events_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/1064/events","html_url":"https://github.com/da2k/curso-javascript-ninja/issues/1064","id":184353694,"number":1064,"title":"Aula 10 - Como funciona a expressão: {} + []","user":{"login":"willianribeiro","id":3102551,"avatar_url":"https://avatars.githubusercontent.com/u/3102551?v=3","gravatar_id":"","url":"https://api.github.com/users/willianribeiro","html_url":"https://github.com/willianribeiro","followers_url":"https://api.github.com/users/willianribeiro/followers","following_url":"https://api.github.com/users/willianribeiro/following{/other_user}","gists_url":"https://api.github.com/users/willianribeiro/gists{/gist_id}","starred_url":"https://api.github.com/users/willianribeiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willianribeiro/subscriptions","organizations_url":"https://api.github.com/users/willianribeiro/orgs","repos_url":"https://api.github.com/users/willianribeiro/repos","events_url":"https://api.github.com/users/willianribeiro/events{/privacy}","received_events_url":"https://api.github.com/users/willianribeiro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/da2k/curso-javascript-ninja/labels/question","name":"question","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-20T22:11:50Z","updated_at":"2016-10-21T13:11:35Z","closed_at":"2016-10-21T13:11:35Z","body":"Postei essa dúvida no grupo, mas to passando pra cá pra ficar mais fácil de acompanhar:\r\n\r\nBoa tarde, povo!\r\n\r\nTo assistindo a Aula 10 e pintou uma dúvida aqui. Na aula o @fdaciuk faz o seguinte:\r\n\r\n```\r\nfunction sum (a, b) {\r\n    return a + b;\r\n}\r\n\r\nconsole.log( sum( {}, [] ) );   // —> isso retorna [object Object]\r\n```\r\n\r\nEu fui testar aqui e somei direto no console node, sem criar uma função e o resultado foi `0`! Alguém sabe porque diabos isso acontece?\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3102551/19579818/5d66d9e6-9701-11e6-8286-cba78bc0833c.png)\r\n\r\n\r\n<!-- Não apague daqui pra baixo! -->\r\n@fdaciuk\r\n"}}
{"actor":{"display_login":"fdaciuk"}}