You don't know. JavaScript (medium volume) PDF

Source: Internet
Author: User

: Network Disk Download

Content Introduction· · · · · ·

JavaScript is simple and easy to use, but its language mechanism is complex and subtle, and even experienced JavaScript developers can't really understand it without serious learning. This set of books faces the current trend of JavaScript developers superficial understanding, deeply understand the internal mechanism of the language, and comprehensively introduces the important knowledge points that are often misunderstood and neglected in JavaScript. This book is one of the volumes that mainly describes type, syntax, async, and performance.

Author profile ...

< author Introduction >

Kyle Simpson

Writers, trainers, lecturers, active members of the open source community, advocating an open Internet, in-depth research on JavaScript, HTML5, real-time/end-to-end communication and Web performance.

Introduction to < Translator >

Single industry

Master of Computer science, software engineer, has worked in a number of software companies, engaged in software development work, is currently living in Shanghai. Responsible for the second part of the book, "Async and Performance" translation.

Jiangnan

Engaged in domestic and foreign financial, communications, mobile Internet, digital publishing and other fields of IT system development work, good at the technology has Java, C #, HTML5, JavaScript, IOS, Android and so on. Long-term in the independent technology blog-cool Shell (coolshell.cn) published translation articles. Responsible for the translation of the first part of the book "Type and Grammar".

Catalogue ... preface XI
The first part type and syntax
Preface 2
1th Chapter Type 3
1.1 Type 4
1.2 Built-in type 4
1.3 Value and type 6
1.3.1 Undefined and undeclared 6
1.3.2 typeof Undeclared 7
1.4 Summary 10
2nd Chapter Value 11
2.1 Array 11
2.2 String 13
2.3 Number 15
2.3.1 Syntax for numbers 16
2.3.2 Small Value 18
2.3.3 Security range for integers 19
2.3.4 Integer Detection 20
2.3.5 32-bit signed integer 20
2.4 Special Values 21
2.4.1 is not a value of 21
2.4.2 undefined 21
2.4.3 Special Number 23
2.4.4 Special Equation 27
2.5 Values and references 28
2.6 Summary 31
3rd. Native Function 33
3.1 Internal properties [[Class]] 34
3.2 Package Object Packaging 35
3.3 Unpacking 36
3.4 Native functions as constructors 37
3.4.1 Array (..) 37
3.4.2 Object (..), Function (..), and RegExp (..) 40
3.4.3 Date (..) and Error (..) 41
3.4.4 Symbol (..) 42
3.4.5 Native Prototype 43
3.5 Summary 45
4th. Coercion Type Conversion 46
4.1 Value type Conversion 46
4.2 Abstract Value Operation 47
4.2.1 ToString 48
4.2.2 Tonumber 52
4.2.3 ToBoolean 53
4.3 Explicitly forcing type conversions 56
4.3.1 an explicit conversion between a string and a number 57
4.3.2 Explicit parsing of numeric strings 62
4.3.3 explicitly converted to a Boolean value of 65
4.4 Implicit coercion type conversion 67
4.4.1 implicitly simplifies 67
4.4.2 implicit coercion of type conversions between strings and numbers 68
4.4.3 implicit coercion type conversion of Boolean to numeric 71
4.4.4 implicit coercion type conversion to Boolean value 72
4.4.5 | | and && 73
Forced type conversion of 4.4.6 symbols 76
4.5 loose equal and strictly equal 77
4.5.1 Performance of equality comparison operations 77
4.5.2 Abstract Equality
4.6 Abstract Relationship comparison 89
4.7 Summary 91
Chapter 5th Syntax 92
5.1 Statements and Expressions 92
The result value of the 5.1.1 statement 93
5.1.2 side-Effects of Expressions 95
5.1.3 Context Rule 99
5.2 Operator Precedence 104
5.2.1 Short Circuit 107
5.2.2 Stronger bindings 107
5.2.3 Correlation 108
5.2.4 Explanation 110
5.3 Automatic Semicolon 111
5.4 Error 113
5.5 Function Parameters 115
5.6 Try: Finally 117
5.7 Switch 120
5.8 Summary 122
Appendix A mixed environment JavaScript 123
Part two asynchronous and performance
Preface 136
1th Async: Now and in the future 138
1.1 Program of The Block 139
1.2 Event Loop 141
1.3 Parallel Threads 143
1.4 Concurrent 148
1.4.1 Non-interactive 150
1.4.2 Interaction 150
1.4.3 Collaboration 154
1.5 Task 156
1.6 Statement Order 157
1.7 Summary 159
2nd Chapter Callback 161
2.1 Continuation 162
2.2 Order of the Brain 163
2.2.1 Execution and Planning 164
2.2.2 Nested callbacks and chained callbacks 165
2.3 Trust Issues 169
2.3.15 Callback Stories 170
2.3.2 is not just someone else's code 171
2.4 Provincial Point Callback 173
2.5 Summary 176
3rd Chapter Promise 178
3.1 What is Promise 179
3.1.1 Future Value 179
3.1.2 Completing event 183
3.2 Duck type with then method 188
3.3 Promise Trust question 190
3.3.1 Call prematurely 190
3.3.2 Call too Late 191
3.3.3 Callback not called 192
3.3.4 number of calls or too many 193
3.3.5 failed to pass parameter/environment value 193
3.3.6 Swallow Error or exception 194
Is 3.3.7 a trusted promise? 195
3.3.8 Building Trust 197
3.4 Chain Flow 198
3.5 Error Handling 206
3.5.1 Desperate Traps 208
3.5.2 Handling an uncaught condition 209
3.5.3 Successful Pit 211
3.6 Promise Mode 212
3.6.1 Promise.all ([...]) 212
3.6.2 Promise.race ([...]) 213
3.6.3 all ([...]) and race ([...]) variants 216
3.6.4 Concurrent Iterations 217
3.7 Promise API Overview 219
3.7.1 New Promise (..) Builder 219
3.7.2 promise.resolve (..) and Promise.reject (..) 219
3.7.3 then (..) and catch (..) 220
3.7.4 Promise.all ([...]) and promise.race ([...]) 221
3.8 Promise Limitations 222
3.8.1 Sequential error Handling 222
3.8.2 Single Value 223
3.8.3 Single Resolution 225
3.8.4 Inertia 227
3.8.5 Unable to cancel promise 230
3.8.6 Promise Performance 231
3.9 Summary 233
4th Chapter Generator 234
4.1 Breaking the full run 234
4.1.1 Input and Output 236
4.1.2 + iterators 239
4.2 Generator produces a value of 243
4.2.1 Producer and Iterator 243
4.2.2 Iterable 246
4.2.3 Generator Iterator 247
4.3 Asynchronous Iteration Builder 250
4.4 Generator +promise 254
4.4.1 supports Promise's generator Runner 256
Promise concurrency in the 4.4.2 generator 258
4.5 Generator Delegate 262
4.5.1 Why Use Commission 264
4.5.2 Message Delegate 264
4.5.3 Asynchronous Delegate 268
4.5.4 Recursive Delegate 268
4.6 Generator Concurrency 269
4.7-form Real Conversion Program 273
4.8 ES6 before the generator 279
4.8.1 Manual Transformation 280
4.8.2 Automatic Conversion 284
4.9 Summary 285
5th. Program Performance 287
5.1 Web Worker 288
5.1.1 Worker Environment 290
5.1.2 Data Transfer 291
5.1.3 Shared worker 291
5.1.4 Simulating web Worker 293
5.2 SIMD 293
5.3 Asm.js 295
5.3.1 How to use asm.js optimization 295
5.3.2 Asm.js Module 296
5.4 Summary 298
6th. Performance Testing and Tuning 299
6.1 Performance Test 99
6.1.1 Repeat 300
6.1.2 Benchmark.js 301
6.2 Environment for the King 303
6.3 Jsperf.com 305
6.4 Write Good Test 309
6.5 Micro-Performance 309
6.5.1 not all engines are similar to 312
6.5.2 Overall 314
6.6-Tail Call optimization 316
6.7 Summary 318
Appendix A asynquence Library 319
Appendix B Advanced asynchronous Mode 339

: Network Disk Download

You don't know. JavaScript (medium volume) PDF

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.