{"action":"opened","issue":{"url":"https://api.github.com/repos/airbnb/javascript/issues/614","labels_url":"https://api.github.com/repos/airbnb/javascript/issues/614/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/javascript/issues/614/comments","events_url":"https://api.github.com/repos/airbnb/javascript/issues/614/events","html_url":"https://github.com/airbnb/javascript/issues/614","id":120980834,"number":614,"title":"Grammar mistake in 3.4 block","user":{"login":"yuanwang33","id":3899936,"avatar_url":"https://avatars.githubusercontent.com/u/3899936?v=3","gravatar_id":"","url":"https://api.github.com/users/yuanwang33","html_url":"https://github.com/yuanwang33","followers_url":"https://api.github.com/users/yuanwang33/followers","following_url":"https://api.github.com/users/yuanwang33/following{/other_user}","gists_url":"https://api.github.com/users/yuanwang33/gists{/gist_id}","starred_url":"https://api.github.com/users/yuanwang33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuanwang33/subscriptions","organizations_url":"https://api.github.com/users/yuanwang33/orgs","repos_url":"https://api.github.com/users/yuanwang33/repos","events_url":"https://api.github.com/users/yuanwang33/events{/privacy}","received_events_url":"https://api.github.com/users/yuanwang33/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-08T10:41:07Z","updated_at":"2015-12-08T10:41:07Z","closed_at":null,"body":"#### a grammar mistake in 3.4 block\r\n\r\n- [3.4](#3.4) <a name='3.4'></a> Use computed property names when creating objects with dynamic property names.\r\n\r\n  > Why? They allow you to define all the properties of an object in one place.\r\n\r\n    ```javascript\r\n\r\n    function getKey(k) {\r\n      return `a key named ${k}`;\r\n    }\r\n\r\n    // bad\r\n    const obj = {\r\n      id: 5,\r\n      name: 'San Francisco',\r\n    };\r\n    obj[getKey('enabled')] = true;\r\n\r\n    // good\r\n    const obj = {\r\n      id: 5,\r\n      name: 'San Francisco',\r\n      [getKey('enabled')]: true,\r\n    };\r\n    ```\r\n##### the square brackets around \"getKey('enabled')\" in the second last line should be removed. "}}