{"action":"created","issue":{"url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/432","labels_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/432/labels{/name}","comments_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/432/comments","events_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/432/events","html_url":"https://github.com/da2k/curso-javascript-ninja/pull/432","id":114202347,"number":432,"title":"Challenge 02","user":{"login":"allefbr","id":2867569,"avatar_url":"https://avatars.githubusercontent.com/u/2867569?v=3","gravatar_id":"","url":"https://api.github.com/users/allefbr","html_url":"https://github.com/allefbr","followers_url":"https://api.github.com/users/allefbr/followers","following_url":"https://api.github.com/users/allefbr/following{/other_user}","gists_url":"https://api.github.com/users/allefbr/gists{/gist_id}","starred_url":"https://api.github.com/users/allefbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allefbr/subscriptions","organizations_url":"https://api.github.com/users/allefbr/orgs","repos_url":"https://api.github.com/users/allefbr/repos","events_url":"https://api.github.com/users/allefbr/events{/privacy}","received_events_url":"https://api.github.com/users/allefbr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/da2k/curso-javascript-ninja/labels/awaiting%20correction","name":"awaiting correction","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/da2k/curso-javascript-ninja/milestones/2","html_url":"https://github.com/da2k/curso-javascript-ninja/milestones/%232%20class","labels_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/milestones/2/labels","id":1053593,"number":2,"title":"#2 class","description":"","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":9,"closed_issues":30,"state":"open","created_at":"2015-04-05T19:06:17Z","updated_at":"2015-11-01T22:13:49Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-10-30T05:27:32Z","updated_at":"2015-11-02T01:04:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/432","html_url":"https://github.com/da2k/curso-javascript-ninja/pull/432","diff_url":"https://github.com/da2k/curso-javascript-ninja/pull/432.diff","patch_url":"https://github.com/da2k/curso-javascript-ninja/pull/432.patch"},"body":"Fiquei em dúvida em relação as comparações, na Aula 1 você falou que **false**, **''**, **0**, **undefined** todos são **false**, se eu comparo como o exemplo a baixo eu não consigo o resultado esperado? Isso seria pelo fato deu está usando o operador **!==**?.\r\n\r\n```js\r\nfunction myFunc( arg1, arg2, arg3 ){\r\n\r\n\tif ( arg1 !== '' && arg2 === '' && arg3 === '' ){\r\n\t\treturn arg1;\r\n\t} else \tif ( arg1 !== '' && arg2 !== '' && arg3 === '' ) {\r\n\t\treturn arg1 + arg2;\r\n\t} else \tif ( arg1 !== '' && arg2 !== '' && arg3 !== '' ) {\r\n\t\treturn ( arg1 + arg2 ) / arg3;\r\n\t} else \tif (arg1 === '' && arg2 === '' && arg3 === '') {\r\n\t\treturn false;\r\n\t} else {\r\n\t\treturn null;\r\n\t}\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/comments/152884838","html_url":"https://github.com/da2k/curso-javascript-ninja/pull/432#issuecomment-152884838","issue_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/432","id":152884838,"user":{"login":"allefbr","id":2867569,"avatar_url":"https://avatars.githubusercontent.com/u/2867569?v=3","gravatar_id":"","url":"https://api.github.com/users/allefbr","html_url":"https://github.com/allefbr","followers_url":"https://api.github.com/users/allefbr/followers","following_url":"https://api.github.com/users/allefbr/following{/other_user}","gists_url":"https://api.github.com/users/allefbr/gists{/gist_id}","starred_url":"https://api.github.com/users/allefbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allefbr/subscriptions","organizations_url":"https://api.github.com/users/allefbr/orgs","repos_url":"https://api.github.com/users/allefbr/repos","events_url":"https://api.github.com/users/allefbr/events{/privacy}","received_events_url":"https://api.github.com/users/allefbr/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T01:04:58Z","updated_at":"2015-11-02T01:04:58Z","body":"@fdaciuk Agora foi. :)"}}