Book Image

Advanced JavaScript

By : Zachary Shute
Book Image

Advanced JavaScript

By: Zachary Shute

Overview of this book

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.
Table of Contents (9 chapters)

Testing


Testing code is a lot like going to the gym. You know it is good for you. All of the arguments make sense, but getting up and starting down the road to fitness is difficult. The initial rush feels amazing; however, it is closely followed by sore muscles and you begin to wonder if it was really worth it. You take an hour or more out of your day but all you have to show for it is sore arms and legs. But, after a few weeks, it gets easier. You start to notice the benefits of working out.

Much like going to the gym, you have probably heard how important testing code can be. Writing tests is an integral part of writing good and sustainable code. It can be difficult when you first start writing tests. Writing your first tests and having them run successfully brings a thrill or rush, but after a day or two of taking an hour out of your work day to write tests, you begin to wonder if it is really worth it. But you stick with it. After several weeks, it becomes less tedious and you begin to...