{"comment":{"url":"https://api.github.com/repos/RAeschimann/project-notes/comments/11823991","html_url":"https://github.com/RAeschimann/project-notes/commit/89fc236b64e44cc14672f4243740c7a7cc5d2624#commitcomment-11823991","id":11823991,"user":{"login":"aceres","id":1326993,"avatar_url":"https://avatars.githubusercontent.com/u/1326993?v=3","gravatar_id":"","url":"https://api.github.com/users/aceres","html_url":"https://github.com/aceres","followers_url":"https://api.github.com/users/aceres/followers","following_url":"https://api.github.com/users/aceres/following{/other_user}","gists_url":"https://api.github.com/users/aceres/gists{/gist_id}","starred_url":"https://api.github.com/users/aceres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aceres/subscriptions","organizations_url":"https://api.github.com/users/aceres/orgs","repos_url":"https://api.github.com/users/aceres/repos","events_url":"https://api.github.com/users/aceres/events{/privacy}","received_events_url":"https://api.github.com/users/aceres/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"89fc236b64e44cc14672f4243740c7a7cc5d2624","created_at":"2015-06-23T19:32:57Z","updated_at":"2015-06-23T19:32:57Z","body":"I am impressed about the book Speaking JavaScript, especially the chapter: Part IV. Tips, Tools, and Libraries. I recommend you all to have a look in this chapter. For example, there are elegant codes with switch instead if:\r\n\r\nBook page 380:\r\n\r\n// Best:\r\nswitch (x) { \r\n  case 0:\r\n    return 'red';\r\n  case 1:\r\n    return 'green';\r\n  default:\r\n    return 'blue';\r\n}"}}