{"action":"created","issue":{"url":"https://api.github.com/repos/nodeschool/discussions/issues/1728","repository_url":"https://api.github.com/repos/nodeschool/discussions","labels_url":"https://api.github.com/repos/nodeschool/discussions/issues/1728/labels{/name}","comments_url":"https://api.github.com/repos/nodeschool/discussions/issues/1728/comments","events_url":"https://api.github.com/repos/nodeschool/discussions/issues/1728/events","html_url":"https://github.com/nodeschool/discussions/issues/1728","id":153653799,"number":1728,"title":"#2 Baby Steps problem","user":{"login":"TimNR","id":8438237,"avatar_url":"https://avatars.githubusercontent.com/u/8438237?v=3","gravatar_id":"","url":"https://api.github.com/users/TimNR","html_url":"https://github.com/TimNR","followers_url":"https://api.github.com/users/TimNR/followers","following_url":"https://api.github.com/users/TimNR/following{/other_user}","gists_url":"https://api.github.com/users/TimNR/gists{/gist_id}","starred_url":"https://api.github.com/users/TimNR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimNR/subscriptions","organizations_url":"https://api.github.com/users/TimNR/orgs","repos_url":"https://api.github.com/users/TimNR/repos","events_url":"https://api.github.com/users/TimNR/events{/privacy}","received_events_url":"https://api.github.com/users/TimNR/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodeschool/discussions/labels/learnyounode","name":"learnyounode","color":"F0A028"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-05-08T12:40:21Z","updated_at":"2016-09-15T18:14:11Z","closed_at":null,"body":"Hello, Folks,\r\n\r\nI have trouble in Baby Steps.\r\nPlease give me suggestions.\r\n\r\n\r\nfor (i=2; i++; i<process.argv.length) {\r\n\tvar sum = Number(process.argv[i]) + sum\r\n};\r\nconsole.log(sum);\r\n"},"comment":{"url":"https://api.github.com/repos/nodeschool/discussions/issues/comments/247407170","html_url":"https://github.com/nodeschool/discussions/issues/1728#issuecomment-247407170","issue_url":"https://api.github.com/repos/nodeschool/discussions/issues/1728","id":247407170,"user":{"login":"aksharp99","id":20953089,"avatar_url":"https://avatars.githubusercontent.com/u/20953089?v=3","gravatar_id":"","url":"https://api.github.com/users/aksharp99","html_url":"https://github.com/aksharp99","followers_url":"https://api.github.com/users/aksharp99/followers","following_url":"https://api.github.com/users/aksharp99/following{/other_user}","gists_url":"https://api.github.com/users/aksharp99/gists{/gist_id}","starred_url":"https://api.github.com/users/aksharp99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aksharp99/subscriptions","organizations_url":"https://api.github.com/users/aksharp99/orgs","repos_url":"https://api.github.com/users/aksharp99/repos","events_url":"https://api.github.com/users/aksharp99/events{/privacy}","received_events_url":"https://api.github.com/users/aksharp99/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T18:14:11Z","updated_at":"2016-09-15T18:14:11Z","body":"var i;\r\nvar sum = 0;\r\nfor(i=process.argv[2],i<process.argv[2].length;i++) {\r\nsum += Number(process.argv[i]);\r\n}\r\nconsole.log(sum);\r\n\r\n^ above is my code. I get a\r\nTypeError: Cannot read property 'length' of undefined\r\n    at Object.<anonymous> (/Users/aksharpatel/Desktop/nodetutorial/program.js:3:40)\r\n    at Module._compile (module.js:541:32)\r\n    at Object.Module._extensions..js (module.js:550:10)\r\n    at Module.load (module.js:458:32)\r\n    at tryModuleLoad (module.js:417:12)\r\n    at Function.Module._load (module.js:409:3)\r\n    at Module.runMain (module.js:575:10)\r\n    at run (bootstrap_node.js:352:7)\r\n    at startup (bootstrap_node.js:144:9)\r\n    at bootstrap_node.js:467:3\r\n\r\nany ideas?"}}
{"actor":{"display_login":"aksharp99"}}