Mastering JavaScript

Mastering JavaScript

暂无评价综合评分的显示会考虑用户真实性等多项因素,每部作品出现综合评分的时间不定。

作品简介

JavaScript is a high-level, dynamic, untyped, lightweight, and interpreted programming language. Along with HTML and CSS, it is one of the three essential technologies of World Wide Web content production, and is an open source and cross-platform technology. The majority of websites employ JavaScript, and it is well supported by all modern web browsers without plugins. However, the JavaScript landscape has changed dramatically in recent years, and you need to adapt to the new world of JavaScript that people now expect. Mastering modern JavaScript techniques and the toolchain are essential to develop web-scale applications.

Mastering JavaScript will be your companion as you master JavaScript and build innovative web applications. To begin with, you will get familiarized with the language constructs and how to make code easy to organize. You will gain a concrete understanding of variable scoping, loops, and best practices on using types and data structures, as well as the coding style and recommended code organization patterns in JavaScript. The book will also teach you how to use arrays and objects as data structures. You will graduate from intermediate-level skills to advanced techniques as you come to understand crucial language concepts and design principles. You will learn about modern libraries and tools so you can write better code.

By the end of the book, you will understand how reactive JavaScript is going to be the new paradigm.

Ved Antani is an AVP (engineering) at Myntra. Before Myntra, he worked with Electronic Arts, NetApp, and Oracle. Ved is passionate about programming and has been programming in JavaScript since 2005. He has extensive experience in building scalable systems and mobile applications. Ved is a minimalist, a father, and an avid tea drinker.

作品目录

  1. Mastering JavaScript
  2. Credits
  3. About the Author
  4. About the Reviewer
  5. www.PacktPub.com
  6. Support files, eBooks, discount offers, and more
  7. Preface
  8. What this book covers
  9. What you need for this book
  10. Who this book is for
  11. Conventions
  12. Reader feedback
  13. Customer support
  14. Chapter 1. JavaScript Primer
  15. A little bit of history
  16. How to use this book
  17. Hello World
  18. Summary
  19. Chapter 2. Functions, Closures, and Modules
  20. A function literal
  21. Functions as data
  22. Scoping
  23. Function declarations versus function expressions
  24. The arguments parameter
  25. Anonymous functions
  26. Closures
  27. Timers and callbacks
  28. Private variables
  29. Loops and closures
  30. Modules
  31. Summary
  32. Chapter 3. Data Structures and Manipulation
  33. Regular expressions
  34. Exact match
  35. Match from a class of characters
  36. Repeated occurrences
  37. Beginning and end
  38. Backreferences
  39. Greedy and lazy quantifiers
  40. Arrays
  41. Maps
  42. Sets
  43. A matter of style
  44. Summary
  45. Chapter 4. Object-Oriented JavaScript
  46. Understanding objects
  47. Instance properties versus prototype properties
  48. Inheritance
  49. Getters and setters
  50. Summary
  51. Chapter 5. JavaScript Patterns
  52. Design patterns
  53. The namespace pattern
  54. The module pattern
  55. The factory pattern
  56. The mixin pattern
  57. The decorator pattern
  58. The observer pattern
  59. JavaScript Model-View-* patterns
  60. The Model-View-Presenter pattern
  61. Model-View-ViewModel
  62. Summary
  63. Chapter 6. Testing and Debugging
  64. Unit testing
  65. JavaScript debugging
  66. Summary
  67. Chapter 7. ECMAScript 6
  68. Shims or polyfills
  69. Transpilers
  70. ES6 syntax changes
  71. Summary
  72. Chapter 8. DOM Manipulation and Events
  73. DOM
  74. Chaining
  75. Traversal and manipulation
  76. Working with browser events
  77. Propagation
  78. jQuery event handling and propagation
  79. Event delegation
  80. The event object
  81. Summary
  82. Chapter 9. Server-Side JavaScript
  83. An asynchronous evented-model in a browser
  84. Callbacks
  85. Timers
  86. EventEmitters
  87. Modules
  88. npm
  89. JavaScript performance
  90. Summary
  91. Index