Book Description
No matter how much experience you have with JavaScript, odds are you don’t fully understand the language. As part of the “You Don’t Know JS” series, this compact guide explores JavaScript types in greater depth than previous treatments by looking at type coercion problems, demonstrating why types work, and showing you how to take advantage of these features.
Like other books in this series, You Don’t Know JS: Types & Grammar dives into trickier parts of the language that many JavaScript programmers simply avoid or assume don’t exist (like types). Armed with this knowledge, you can achieve true JavaScript mastery.
With this book you will:
- Get acquainted with JavaScript’s seven types: null, undefined, boolean, number, string, object, and symbol
- Understand why JavaSript’s unique array, string, and number characteristics may delight or confound you
- Learn how natives provide object wrappers around primitive values
- Dive into the coercion controversy—and learn why this feature is useful in many cases
- Explore various nuances in JavaScript syntax, involving statements, expressions, and other features
Table of Contents
Chapter 1. Types
Chapter 2. Values
Chapter 3. Natives
Chapter 4. Coercion
Chapter 5. Grammar
Appendix A. Mixed Environment JavaScript
Appendix B. Acknowledgments
中文:
书名:你不知道JS:Types&038;语法
无论您有多少使用Java的经验,您都有可能没有完全理解这门语言。作为您不知道JS&8221;系列的一部分,这本紧凑的指南通过查看类型强制问题、演示类型为什么工作并向您展示如何利用这些功能,比以前的处理更深入地探讨了JavaScript类型。
Like other books in this series, 您不知道JS:类型和语法 深入研究语言中许多JavaScript程序员简单地避免或假定不存在的更复杂的部分(如类型)。有了这些知识,您就可以真正掌握JavaScript。
有了这本书,你将会:
- 熟悉JavaScript的七种类型:空、未定义、布尔型、数字、字符串、对象和符号
- 理解为什么JavaSript独特的数组、字符串和数字特性可能会让您感到高兴或困惑
- 了解本机如何提供原始值的对象包装
- 深入讨论强制问题,了解为什么该功能在许多情况下都很有用
- 探索JavaScript语法中的各种细微差别,包括语句、表达式和其他功能
Table of Contents
第1章.类型
第二章价值观
第三章原住民
第四章.胁迫
第五章语法
附录A.混合环境JavaScript
附录B.致谢
评论前必须登录!
注册