{"comment":{"url":"https://api.github.com/repos/Karrlem/Karrlem_lewisMMP-210-Midterm/comments/14605034","html_url":"https://github.com/Karrlem/Karrlem_lewisMMP-210-Midterm/commit/6b054f06e770ccb4149aca968fd89fca80a6f8f7#commitcomment-14605034","id":14605034,"user":{"login":"profstein","id":6502138,"avatar_url":"https://avatars.githubusercontent.com/u/6502138?v=3","gravatar_id":"","url":"https://api.github.com/users/profstein","html_url":"https://github.com/profstein","followers_url":"https://api.github.com/users/profstein/followers","following_url":"https://api.github.com/users/profstein/following{/other_user}","gists_url":"https://api.github.com/users/profstein/gists{/gist_id}","starred_url":"https://api.github.com/users/profstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/profstein/subscriptions","organizations_url":"https://api.github.com/users/profstein/orgs","repos_url":"https://api.github.com/users/profstein/repos","events_url":"https://api.github.com/users/profstein/events{/privacy}","received_events_url":"https://api.github.com/users/profstein/received_events","type":"User","site_admin":false},"position":14,"line":42,"path":"js/style.js","commit_id":"6b054f06e770ccb4149aca968fd89fca80a6f8f7","created_at":"2015-11-25T01:15:54Z","updated_at":"2015-11-25T01:15:54Z","body":"This is not the correct way to setup  the circleColors variable. You use circleColors[cIndex] when you want to get something out of the array not put it in. \r\nThere are 3 ways you could add items to the array.\r\n\r\n## Way 1: Use Specific Index Numbers\r\nset up a blank array.\r\n```` circleColors = []; ````\r\n\r\nThen you can add a color by referencing a specific index like this:\r\n````\r\ncircleColors[0] = color('yellow');\r\ncircleColors[1] = color('black');\r\n````\r\n\r\n## Way 2: Use the .push() method\r\n\r\nset up a blank array.\r\n```` circleColors = []; ````\r\n\r\nThen use the push() method of the array. This has the advantage of not making you keep track of the index number you're using:\r\n````\r\ncircleColors.push( color('yellow') ); \r\ncircleColors.push( color('black') );\r\n````\r\n\r\n## Way 3: Add Everything at one time\r\nThe alternative is to just add everything to the array at one time. When you do this you separate each item with a comma:\r\n````\r\ncircleColors = [\r\n    color('yellow'),\r\n    color('black'),\r\n    color('red')\r\n];"}}