Book Description
JavaScript is no longer to be feared or loathed – the world’s most popular and ubiquitous language has evolved into a respectable language. Whether you’re writing frontend applications or server side code, the phenomenal features from ES6 and beyond – like the rest operator, generators, destructuring, object literals, arrow functions, modern classes, promises, async, and metaprogramming capabilities – will get you excited and eager to program with JavaScript. You’ve found the right book to get started quickly and dive deep into the essence of modern JavaScript. Learn practical tips to apply the elegant parts of the language and the gotchas to avoid.
JavaScript is a black swan that no one, including the author of the language, thought would become a popular and ubiquitous language. Not long ago, it was the most hated and feared language you could use to program the web. JavaScript ES6 and beyond has gone through a significant makeover. Troublesome features have been replaced with better, elegant, more reliable alternatives. This book includes many practical examples and exercises to help you learn in depth. It will not bore you with idiosyncrasies and arcane details intended for bad interview questions. Instead, it takes you into key features that you can readily use in your day-to-day projects.
Whether you program the frontend or the server side, you can now write concise, elegant, and expressive JavaScript with newer features like default parameters, template literals, rest and spread operators, destructuring, arrow functions, and generators. Take it up a notch with features like infinite series, promises, async, and metaprogramming to create flexible, powerful, and extensible libraries. While the evolved features of the language will draw you in, the hundreds of examples in this book will pin the concepts down, for you to use on your projects. Take command of modern JavaScript and unlock your potential to create powerful applications.
What You Need:
To try out the examples in the book you will need a computer with Node.js, a text editor, and a browser like Chrome installed in it.
Table of Contents
Part I—The Safe Alternatives
Chapter 1. Javascript Gotchas
Chapter 2. Variables And Constants
Chapter 3. Working With Function Arguments
Part II—Nice Additions
Chapter 4. Iterators And Symbols
Chapter 5. Arrow Functions And Functional Style
Chapter 6. Literals And Destructuring
Part III—OO and Modular Code
Chapter 7. Working With Classes
Chapter 8. Using Inheritance
Chapter 9. Using Modules
Part IV—Going Meta
Chapter 10. Keeping Your Promises
Chapter 11. Exploring Metaprogramming
Chapter 12. Deep Dive Into Metaprogramming
Appendix A1. Answers To Exercises
Appendix A2. Web Resources
中文:
书名:Rediscovering JavaScript: Master ES6, ES7, and ES8
世界上最流行、最普遍的语言已经演变成了一种受人尊敬的语言,它不再令人畏惧或厌恶。无论您是在编写前端应用程序还是在编写服务器端代码,ES6及更高版本中的非凡特性,如REST运算符、生成器、析构、对象文字、箭头函数、现代类、承诺、异步和元编程功能等,都会让您兴奋不已,并渴望使用Java编程。您已经找到了一本合适的书,可以快速入门并深入了解现代JavaScript的精髓。学习实用的技巧来应用语言的优雅部分和要避免的陷阱。
JavaScript是一只黑天鹅,没有人,包括该语言的作者,认为它会成为一种流行和无处不在的语言。不久前,它还是你可以用来编写网络程序的最令人憎恨和恐惧的语言。JAVASCRIPTERS ES6及更高版本已经经历了重大的改造。麻烦的功能已经被更好、更优雅、更可靠的替代产品所取代。这本书包括了许多实用的例子和练习,帮助你深入学习。它不会为糟糕的面试问题而设计的怪癖和神秘的细节让你厌烦。相反,它将带您了解您可以在日常项目中随时使用的关键功能。
无论您是在前端还是在服务器端编程,您现在都可以编写简洁、优雅且富于表现力的JavaScript,这些脚本具有更新的特性,如默认参数、模板文字、REST和扩散操作符、析构、箭头函数和生成器。通过无限级数、承诺、异步和元编程等功能创建灵活、强大和可扩展的库,使其更上一层楼。虽然语言的演变特性将吸引您,但本书中的数百个示例将明确概念,供您在项目中使用。掌握现代的JavaScript,释放您的潜力,创建功能强大的应用程序。
What You Need:
要试用这本书中的例子,你需要一台装有Node.js的电脑,一个文本编辑器,以及一个类似Chrome的浏览器。
目录表
Part I—The Safe Alternatives
Chapter 1. Javascript Gotchas
Chapter 2. Variables And Constants
第3章.使用函数参数
第二部分–精彩的附加内容
Chapter 4. Iterators And Symbols
第5章.箭头函数和函数样式
第六章:文字和解构
Part III—OO and Modular Code
Chapter 7. Working With Classes
Chapter 8. Using Inheritance
第9章:使用模块
第四部分-正在进行的Meta
Chapter 10. Keeping Your Promises
第11章:探索元编程
第12章:深入研究元编程
Appendix A1. Answers To Exercises
附录A2。网络资源
评论前必须登录!
注册