{"action":"created","issue":{"url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/230","labels_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/230/labels{/name}","comments_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/230/comments","events_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/230/events","html_url":"https://github.com/da2k/curso-javascript-ninja/pull/230","id":97593365,"number":230,"title":"Challenge 11","user":{"login":"alvesnatan","id":10634665,"avatar_url":"https://avatars.githubusercontent.com/u/10634665?v=3","gravatar_id":"","url":"https://api.github.com/users/alvesnatan","html_url":"https://github.com/alvesnatan","followers_url":"https://api.github.com/users/alvesnatan/followers","following_url":"https://api.github.com/users/alvesnatan/following{/other_user}","gists_url":"https://api.github.com/users/alvesnatan/gists{/gist_id}","starred_url":"https://api.github.com/users/alvesnatan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvesnatan/subscriptions","organizations_url":"https://api.github.com/users/alvesnatan/orgs","repos_url":"https://api.github.com/users/alvesnatan/repos","events_url":"https://api.github.com/users/alvesnatan/events{/privacy}","received_events_url":"https://api.github.com/users/alvesnatan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/da2k/curso-javascript-ninja/labels/revised","name":"revised","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/da2k/curso-javascript-ninja/milestones/11","html_url":"https://github.com/da2k/curso-javascript-ninja/milestones/%2311%20class","labels_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/milestones/11/labels","id":1156076,"number":11,"title":"#11 class","description":null,"creator":{"login":"fdaciuk","id":487669,"avatar_url":"https://avatars.githubusercontent.com/u/487669?v=3","gravatar_id":"","url":"https://api.github.com/users/fdaciuk","html_url":"https://github.com/fdaciuk","followers_url":"https://api.github.com/users/fdaciuk/followers","following_url":"https://api.github.com/users/fdaciuk/following{/other_user}","gists_url":"https://api.github.com/users/fdaciuk/gists{/gist_id}","starred_url":"https://api.github.com/users/fdaciuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdaciuk/subscriptions","organizations_url":"https://api.github.com/users/fdaciuk/orgs","repos_url":"https://api.github.com/users/fdaciuk/repos","events_url":"https://api.github.com/users/fdaciuk/events{/privacy}","received_events_url":"https://api.github.com/users/fdaciuk/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":6,"state":"open","created_at":"2015-06-09T01:53:10Z","updated_at":"2015-07-28T16:08:32Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-07-28T01:41:27Z","updated_at":"2015-07-28T22:53:43Z","closed_at":"2015-07-28T16:08:20Z","pull_request":{"url":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/230","html_url":"https://github.com/da2k/curso-javascript-ninja/pull/230","diff_url":"https://github.com/da2k/curso-javascript-ninja/pull/230.diff","patch_url":"https://github.com/da2k/curso-javascript-ninja/pull/230.patch"},"body":"@fdaciuk Desafio 11 feito.\r\n\r\nVocê tem alguma dica pra melhorar a lógica? Porque por exemplo, nessa parte:\r\n\r\n```javascript\r\nfor( var property in person ) {\r\n   console.log( 'The ' + property + ' of person is ' + person[property] );\r\n   counter++;\r\n}\r\n```\r\n\r\nEu levei um tempo pra sacar que só precisava incrementar o contador, pois antes eu estava tentando adicionar o valor de `property` ao `counter`, e isso me deixa um pouco frustrado.\r\n\r\nTem alguma dica? (Além de fazer os desafios e refazê-los que é o que eu sempre faço).\r\n\r\n:smile: "},"comment":{"url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/comments/125776058","html_url":"https://github.com/da2k/curso-javascript-ninja/pull/230#issuecomment-125776058","issue_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/230","id":125776058,"user":{"login":"alvesnatan","id":10634665,"avatar_url":"https://avatars.githubusercontent.com/u/10634665?v=3","gravatar_id":"","url":"https://api.github.com/users/alvesnatan","html_url":"https://github.com/alvesnatan","followers_url":"https://api.github.com/users/alvesnatan/followers","following_url":"https://api.github.com/users/alvesnatan/following{/other_user}","gists_url":"https://api.github.com/users/alvesnatan/gists{/gist_id}","starred_url":"https://api.github.com/users/alvesnatan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvesnatan/subscriptions","organizations_url":"https://api.github.com/users/alvesnatan/orgs","repos_url":"https://api.github.com/users/alvesnatan/repos","events_url":"https://api.github.com/users/alvesnatan/events{/privacy}","received_events_url":"https://api.github.com/users/alvesnatan/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T22:53:42Z","updated_at":"2015-07-28T22:53:42Z","body":"@fdaciuk Bem na verdade o que me frustra é não conseguir pensar na solução mais correta que é a mais simples na hora de resolver o exercício, mas acho que isso é com o tempo.\r\n\r\nÉ, eu sempre esqueço dos booleanos. Nenhuma dúvida :smile: "}}