{"comment":{"url":"https://api.github.com/repos/nss-evening-cohort-3/static-web-javascript-quiz-csbarrett1/comments/16461305","html_url":"https://github.com/nss-evening-cohort-3/static-web-javascript-quiz-csbarrett1/commit/b19b8e6a6bc0e8d4f7e2e7ed9953a83133e5b117#commitcomment-16461305","id":16461305,"user":{"login":"JoeShep","id":3247835,"avatar_url":"https://avatars.githubusercontent.com/u/3247835?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeShep","html_url":"https://github.com/JoeShep","followers_url":"https://api.github.com/users/JoeShep/followers","following_url":"https://api.github.com/users/JoeShep/following{/other_user}","gists_url":"https://api.github.com/users/JoeShep/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeShep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeShep/subscriptions","organizations_url":"https://api.github.com/users/JoeShep/orgs","repos_url":"https://api.github.com/users/JoeShep/repos","events_url":"https://api.github.com/users/JoeShep/events{/privacy}","received_events_url":"https://api.github.com/users/JoeShep/received_events","type":"User","site_admin":false},"position":10,"line":10,"path":"quiz.js","commit_id":"b19b8e6a6bc0e8d4f7e2e7ed9953a83133e5b117","created_at":"2016-03-02T23:56:58Z","updated_at":"2016-03-02T23:56:58Z","body":"So, you're lucky that JavaScript figures out what's happening here. By not using `var` or setting up an empty tree object with `var tree = {}`, you're just making a global object all over again, but kind of worse because it's accidental. Just remedy the whole thing by doing `var tree = {}` on the first line of this function. Then you're good to go."}}