{"action":"created","issue":{"url":"https://api.github.com/repos/nodeschool/discussions/issues/859","labels_url":"https://api.github.com/repos/nodeschool/discussions/issues/859/labels{/name}","comments_url":"https://api.github.com/repos/nodeschool/discussions/issues/859/comments","events_url":"https://api.github.com/repos/nodeschool/discussions/issues/859/events","html_url":"https://github.com/nodeschool/discussions/issues/859","id":54956323,"number":859,"title":"newbie, why this outputs 0 ? (lesson 2)","user":{"login":"594727294","id":4443513,"avatar_url":"https://avatars.githubusercontent.com/u/4443513?v=3","gravatar_id":"","url":"https://api.github.com/users/594727294","html_url":"https://github.com/594727294","followers_url":"https://api.github.com/users/594727294/followers","following_url":"https://api.github.com/users/594727294/following{/other_user}","gists_url":"https://api.github.com/users/594727294/gists{/gist_id}","starred_url":"https://api.github.com/users/594727294/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/594727294/subscriptions","organizations_url":"https://api.github.com/users/594727294/orgs","repos_url":"https://api.github.com/users/594727294/repos","events_url":"https://api.github.com/users/594727294/events{/privacy}","received_events_url":"https://api.github.com/users/594727294/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-20T23:31:59Z","updated_at":"2015-01-20T23:44:15Z","closed_at":null,"body":"i cant seem to find out why this doesn't work.. should i try with parseInt() ?\r\n\r\ni start the loop in the second index as the hint says. Tried as well with Number() instead of prefixing \"+\".\r\n\r\nvar total = 0;\r\nvar c = 1;\r\nprocess.argv.forEach(function() {\r\n\tc++;\r\n\tvar numero = +process.argv[c];\r\n\t// console.log(numero);\r\n\ttotal = total + numero;\r\n});\r\nconsole.log(total);\r\n\r\nit just outputs 0\r\n"},"comment":{"url":"https://api.github.com/repos/nodeschool/discussions/issues/comments/70758133","html_url":"https://github.com/nodeschool/discussions/issues/859#issuecomment-70758133","issue_url":"https://api.github.com/repos/nodeschool/discussions/issues/859","id":70758133,"user":{"login":"sudodoki","id":1506905,"avatar_url":"https://avatars.githubusercontent.com/u/1506905?v=3","gravatar_id":"","url":"https://api.github.com/users/sudodoki","html_url":"https://github.com/sudodoki","followers_url":"https://api.github.com/users/sudodoki/followers","following_url":"https://api.github.com/users/sudodoki/following{/other_user}","gists_url":"https://api.github.com/users/sudodoki/gists{/gist_id}","starred_url":"https://api.github.com/users/sudodoki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudodoki/subscriptions","organizations_url":"https://api.github.com/users/sudodoki/orgs","repos_url":"https://api.github.com/users/sudodoki/repos","events_url":"https://api.github.com/users/sudodoki/events{/privacy}","received_events_url":"https://api.github.com/users/sudodoki/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T23:44:15Z","updated_at":"2015-01-20T23:44:15Z","body":"You're starting your index from second item, that's correct, but you're looping exactly so many times as the length of `process.argv` vector, which is getting you 2 extra runs"}}