The book has 10 chapters:
- Good parts (introduction)
- Grammar (Finite State Machines representing JS grammar)
- Objects
- Functions
- Inheritance
- Arrays
- Regular Expressions
- Methods
- Style
- Beautiful Features
- Appendix A. Awful Parts
- Appendix B. Bad Parts
- Appendix C. JSLint
- Appendix D. Syntax Diagrams
- Appendix E. JSON
- Index
Going through the entire book, I found out that the most interesting chapters are
- Objects
- Functions
- Inheritance
So in this js file I summurized those 3 chapters.
To run the examples in the command line type:
node jsTheGoodParts.js
node needs to be previously installed