My Account Log in

2 options

Rediscovering JavaScript : master ES6, ES7, and ES8 / Venkat Subramaniam.

Ebook Central College Complete Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Subramaniam, Venkat, author.
Series:
Pragmatic programmers.
Pragmatic programmers
Language:
English
Subjects (All):
JavaScript (Computer program language).
Physical Description:
1 online resource (280 pages).
Edition:
1st edition
Place of Publication:
Raleigh, North Carolina : Pragmatic Bookshelf, [2018]
System Details:
text file
Summary:
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.
Contents:
Cover
Table of Contents
Acknowledgments
Introduction
How to Run Modern JavaScript
What's in This Book?
Who Is This Book For?
Online Resources
Part I-The Safe Alternatives
1. JavaScript Gotchas
Be Careful Where You Break Lines
Use === Instead of ==
Declare Before Use
Stay One Step Ahead
Wrapping Up
2. Variables and Constants
Out with var
In with let
Perils of Mutability
const
Safer Code with let and const
Prefer const over let
3. Working with Function Arguments
The Power and Perils of arguments
Using the Rest Parameter
The Spread Operator
Defining Default Values for Parameters
Part II-Nice Additions
4. Iterators and Symbols
The Convenience of Enhanced for
Symbol-A New Primitive Type
Using Custom Iterators and Generators
Creating Infinite Iterators
5. Arrow Functions and Functional Style
From Anonymous to Arrow Functions
Anonymous vs. Arrow Functions
Limitations of Arrow Functions
When to Use Arrow Functions
Arrow Functions and Functional Style
6. Literals and Destructuring
Using Template Literals
Multiline Strings
Tagged Template
Enhanced Object Literals
Destructuring
Part III-OO and Modular Code
7. Working with Classes
Creating a Class
Implementing a Constructor
Defining a Method
Defining Computed Members
Creating Properties
Defining Class Members
Class Expressions
New Built-in Classes: Set, Map, WeakSet, and WeakMap
8. Using Inheritance
Understanding Prototypal Inheritance
Inheriting from a Class
Managing Instance Types with species
9. Using Modules
Creating a Module
Exporting from a Module
Importing from a Module
Part IV-Going Meta.
10. Keeping Your Promises
No Thanks to Callback Hell
Promises to the Rescue
Ways to Create a Promise
Chaining Promises
Working with Multiple Promises
Async and Await
11. Exploring Metaprogramming
The Power and Perils of Metaprogramming
Dynamic Access
Member Injection
12. Deep Dive into Metaprogramming
Purpose of Reflect
Metaprogramming with Proxy
Synthesizing Members with Proxy
Using Decorators
A1. Answers to Exercises
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
A2. Web Resources
Bibliography
Index
- SYMBOLS -
- A -
- B -
- C -
- D -
- E -
- F -
- G -
- H -
- I -
- J -
- L -
- M -
- N -
- O -
- P -
- Q -
- R -
- S -
- T -
- U -
- V -
- W -
- Y -.
Notes:
Description based on print version record.
"Version: P1.0 (June 2018)."
Includes bibliographical references.
ISBN:
9781680506174
168050617X
9781680506198
1680506196
9781680506181
1680506188
OCLC:
1048573804

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account