Book description
Gain a deeper understanding of JavaScript and apply it to build small applications in backend, frontend, and mobile frameworks.
Key Features
- Explore the new ES6 syntax, the event loop, and asynchronous programming
- Learn the test-driven development approach when building apps
- Master advanced JavaScript concepts to enhance your web developments skill
Book Description
If you are looking for a programming language to develop flexible and efficient applications, JavaScript is an obvious choice. Advanced JavaScript is a hands-on guide that takes you through JavaScript and its many features, one step at a time. You'll begin by learning how to use the new JavaScript syntax in ES6, and then work through the many other features that modern JavaScript has to offer. As you progress through the chapters, you'll use asynchronous programming with callbacks and promises, handle browser events, and perform Document Object Model (DOM) manipulation. You'll also explore various methods of testing JavaScript projects. In the concluding chapters, you'll discover functional programming and learn to use it to build your apps. With this book as your guide, you'll also be able to develop APIs using Node.js and Express, create front-ends using React/Redux, and build mobile apps using React/Expo.
By the end of Advanced JavaScript, you will have explored the features and benefits of JavaScript to build small applications.
What you will learn
- Examine major features in ES6 and implement those features to build applications
- Create promise and callback handlers to work with asynchronous processes
- Develop asynchronous flows using Promise chaining and async/await syntax
- Manipulate the DOM with JavaScript
- Handle JavaScript browser events
- Explore Test Driven Development and build code tests with JavaScript code testing frameworks.
- List the benefits and drawbacks of functional programming compared to other styles
- Construct applications with the Node.js backend framework and the React frontend framework
Who this book is for
This book is designed to target anyone who wants to write JavaScript in a professional environment. We expect the audience to have used JavaScript in some capacity and be familiar with the basic syntax. This book would be good for a tech enthusiast wondering when to use generators or how to use Promises and Callbacks effectively, or a novice developer who wants to deepen their knowledge on JavaScript and understand TDD.
Table of contents
- Preface
- Chapter 1
- Introducing ECMAScript 6
- Chapter 2
- Asynchronous JavaScript
- Chapter 3
- DOM Manipulation and Event Handling
- Chapter 4
- Testing JavaScript
- Chapter 5
- Functional Programming
- Chapter 6
-
The JavaScript Ecosystem
- Introduction
- JavaScript Ecosystem
-
Node.js
- Setting Up Node.js
- Node Package Manager
- Loading and Creating Modules
- Exercise 32: Exporting and Importing NPM Modules
- Basic Node.js Server
- Exercise 33: Creating a Basic HTTP Server
- Streams and Pipes
- Types of Streams
- Writeable Stream Events:
- Readable Stream Events:
- Filesystem Operations
- Express Server
- Exercise 34: Creating a Basic Express Server
- Routing
- Advanced Routing
- Middleware
- Error Handling
- Exercise 35: Building a Backend with Node.js
- React
- Summary
- Appendix
Product information
- Title: Advanced JavaScript
- Author(s):
- Release date: January 2019
- Publisher(s): Packt Publishing
- ISBN: 9781789800104
You might also like
video
Advanced JavaScript Topics
If you want to make a career in JavaScript, it is necessary to have knowledge and …
book
Multithreaded Javascript
Traditionally, JavaScript has been a single-threaded language. Nearly all online forum posts, books, online documentation, and …
video
Expert JavaScript
5+ Hours of Video Instruction Overview How do you become an expert JavaScript developer? Let Sahil …
book
Eloquent JavaScript, 3rd Edition
JavaScript lies at the heart of almost every modern web application, from social apps like Twitter …