{"action":"created","issue":{"url":"https://api.github.com/repos/scintillating-doughnut/scintillating-doughnut/issues/49","labels_url":"https://api.github.com/repos/scintillating-doughnut/scintillating-doughnut/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/scintillating-doughnut/scintillating-doughnut/issues/49/comments","events_url":"https://api.github.com/repos/scintillating-doughnut/scintillating-doughnut/issues/49/events","html_url":"https://github.com/scintillating-doughnut/scintillating-doughnut/issues/49","id":125887782,"number":49,"title":"Can someone help me see why my 'startGameTimer' is not working?","user":{"login":"jshaw22","id":8436266,"avatar_url":"https://avatars.githubusercontent.com/u/8436266?v=3","gravatar_id":"","url":"https://api.github.com/users/jshaw22","html_url":"https://github.com/jshaw22","followers_url":"https://api.github.com/users/jshaw22/followers","following_url":"https://api.github.com/users/jshaw22/following{/other_user}","gists_url":"https://api.github.com/users/jshaw22/gists{/gist_id}","starred_url":"https://api.github.com/users/jshaw22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshaw22/subscriptions","organizations_url":"https://api.github.com/users/jshaw22/orgs","repos_url":"https://api.github.com/users/jshaw22/repos","events_url":"https://api.github.com/users/jshaw22/events{/privacy}","received_events_url":"https://api.github.com/users/jshaw22/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-11T07:33:00Z","updated_at":"2016-01-11T22:31:28Z","closed_at":"2016-01-11T22:31:27Z","body":"I declared a global variable, `timeInSeconds = 0`. \r\nIn the Game State object, I set `this.gameTime = timeInSeconds`.\r\nAlso in the gamestate object I call `startGameTimer()`\r\n\r\nstartGameTimer() recursively calls itself every 1 second while incrementing timeInSeconds:\r\n```javascript\r\nvar startGameTimer = function () {\r\n  timeInSeconds++;\r\n  setTimeout(startGameTimer, 1000);\r\n};\r\n```\r\nYet in the live-test it's always 0. Why?! "},"comment":{"url":"https://api.github.com/repos/scintillating-doughnut/scintillating-doughnut/issues/comments/170712305","html_url":"https://github.com/scintillating-doughnut/scintillating-doughnut/issues/49#issuecomment-170712305","issue_url":"https://api.github.com/repos/scintillating-doughnut/scintillating-doughnut/issues/49","id":170712305,"user":{"login":"jshaw22","id":8436266,"avatar_url":"https://avatars.githubusercontent.com/u/8436266?v=3","gravatar_id":"","url":"https://api.github.com/users/jshaw22","html_url":"https://github.com/jshaw22","followers_url":"https://api.github.com/users/jshaw22/followers","following_url":"https://api.github.com/users/jshaw22/following{/other_user}","gists_url":"https://api.github.com/users/jshaw22/gists{/gist_id}","starred_url":"https://api.github.com/users/jshaw22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshaw22/subscriptions","organizations_url":"https://api.github.com/users/jshaw22/orgs","repos_url":"https://api.github.com/users/jshaw22/repos","events_url":"https://api.github.com/users/jshaw22/events{/privacy}","received_events_url":"https://api.github.com/users/jshaw22/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T22:31:27Z","updated_at":"2016-01-11T22:31:27Z","body":"Fixed. "}}