{"action":"created","issue":{"url":"https://api.github.com/repos/FormidableLabs/es6-interactive-guide/issues/11","labels_url":"https://api.github.com/repos/FormidableLabs/es6-interactive-guide/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/FormidableLabs/es6-interactive-guide/issues/11/comments","events_url":"https://api.github.com/repos/FormidableLabs/es6-interactive-guide/issues/11/events","html_url":"https://github.com/FormidableLabs/es6-interactive-guide/issues/11","id":111075674,"number":11,"title":"Weird const in the arrow functions demo","user":{"login":"codepo8","id":13508,"avatar_url":"https://avatars.githubusercontent.com/u/13508?v=3","gravatar_id":"","url":"https://api.github.com/users/codepo8","html_url":"https://github.com/codepo8","followers_url":"https://api.github.com/users/codepo8/followers","following_url":"https://api.github.com/users/codepo8/following{/other_user}","gists_url":"https://api.github.com/users/codepo8/gists{/gist_id}","starred_url":"https://api.github.com/users/codepo8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codepo8/subscriptions","organizations_url":"https://api.github.com/users/codepo8/orgs","repos_url":"https://api.github.com/users/codepo8/repos","events_url":"https://api.github.com/users/codepo8/events{/privacy}","received_events_url":"https://api.github.com/users/codepo8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-12T23:45:20Z","updated_at":"2015-10-12T23:54:44Z","closed_at":null,"body":"You're defining the double in the last example as a const, however it gets changed on every application of the map. let would make more sense, wouldn't it?\r\n"},"comment":{"url":"https://api.github.com/repos/FormidableLabs/es6-interactive-guide/issues/comments/147551709","html_url":"https://github.com/FormidableLabs/es6-interactive-guide/issues/11#issuecomment-147551709","issue_url":"https://api.github.com/repos/FormidableLabs/es6-interactive-guide/issues/11","id":147551709,"user":{"login":"exogen","id":53522,"avatar_url":"https://avatars.githubusercontent.com/u/53522?v=3","gravatar_id":"","url":"https://api.github.com/users/exogen","html_url":"https://github.com/exogen","followers_url":"https://api.github.com/users/exogen/followers","following_url":"https://api.github.com/users/exogen/following{/other_user}","gists_url":"https://api.github.com/users/exogen/gists{/gist_id}","starred_url":"https://api.github.com/users/exogen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exogen/subscriptions","organizations_url":"https://api.github.com/users/exogen/orgs","repos_url":"https://api.github.com/users/exogen/repos","events_url":"https://api.github.com/users/exogen/events{/privacy}","received_events_url":"https://api.github.com/users/exogen/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T23:54:44Z","updated_at":"2015-10-12T23:54:44Z","body":"It's not really getting changed though on each call since each call has its own scope within the function; the declarations don't \"carry over\" on each call. `eslint` would actually warn you of an unnecessary use of `let`."}}