Key Features
- This book has been updated to cover all the new object-oriented features introduced in ECMAScript 6
- It makes object-oriented programming accessible and understandable to web developers
- Write better and more maintainable JavaScript code while exploring interactive examples that can be used in your own scripts
Book Description
JavaScript is an object-oriented programming language that is used for website development. Web pages developed today currently follow a paradigm that has three clearly distinguishable parts: content (HTML), presentation (CSS), and behavior (JavaScript). JavaScript is one important pillar in this paradigm, and is responsible for the running of the web pages.
This book will take your JavaScript skills to a new level of sophistication and get you prepared for your journey through professional web development. Updated for ES6, this book covers everything you will need to unleash the power of object-oriented programming in JavaScript while building professional web applications. The book begins with the basics of object-oriented programming in JavaScript and then gradually progresses to cover functions, objects, and prototypes, and how these concepts can be used to make your programs cleaner, more maintainable, faster, and compatible with other programs/libraries.
By the end of the book, you will have learned how to incorporate object-oriented programming in your web development workflow to build professional JavaScript applications.
What You Will Learn
- Apply the basics of object-oriented programming in the JavaScript environment
- Use a JavaScript Console with complete mastery
- Make your programs cleaner, faster, and compatible with other programs and libraries
- Get familiar with Iterators and Generators, the new features added in ES6
- Find out about ECMAScript 6's Arrow functions, and make them your own
- Understand objects in Google Chrome developer tools and how to use them
- Use a mix of prototypal inheritance and copying properties in your workflow
- Apply reactive programming techniques while coding in JavaScript
About the Author
Ved Antani has been building scalable server and mobile platforms using JavaScript, Go, and Java since 2005. He is an associate vice president at Myntra and has previously worked at Electronic Arts and Oracle. He is an avid reader and author on several subjects. He has studied computer science and currently lives in Bangalore, India. Ved is passionate about classical music and loves to spend time with his son.
Stoyan Stefanov is a Facebook engineer, author, and speaker. He talks regularly about web development topics at conferences, and his blog, www.phpied.com. He also runs a number of other sites, including JSPatterns.com - a site dedicated to exploring JavaScript patterns. Previously at Yahoo!, Stoyan was the architect of YSlow 2.0 and creator of the image optimization tool, Smush.it.
A "citizen of the world", Stoyan was born and raised in Bulgaria, but is also a Canadian citizen, currently residing in Los Angeles, California. In his offline moments, he enjoys playing the guitar, taking flying lessons, and spending time at the Santa Monica beaches with his family.
Table of Contents
- Object-Oriented JavaScript
- Primitive Data Types, Arrays, Loops, and Conditions
- Functions
- Objects
- ES6 Iterators and Generators
- Prototype
- Inheritance
- Classes and Modules
- Promises and Proxies
- The Browser Environment
- Coding and Design Patterns
- Testing and Debugging
- Reactive Programming and React
- Reserved Words
- Built-in Functions
- Built-in Objects
- Regular Expressions
- Answers to Exercise Questions