Rest Parameters, Spread Operator and default parameters for Functions are all great additions for JavaScript ES2015.
JavaScript promises have an important anti-pattern when it comes to using .then() with an error handler versus when using .catch() for handling errors.
Classes in TypeScript really extend JavaScript's (ES2015) class functionality and add their support for types and member access.
If you have worked with JavaScript before you may have heard the expression 'prototypal inheritance' or that JavaScript is a 'prototype' based language. As of ES2015 we can use the class keyword which adds syntactic sugar over the prototypes.
The way you have defined variables in JavaScript for the past decade has always been the same – by using the `var` keyword. In the latest version of JavaScript (ES2015) you can declare variables using let and const.'
The latest version of JavaScript (ES2015) allows us to write functions in a different way by using the arrow function syntax. This not only allows for terser function declarations but also has additional benefits.
Interfaces provide a very powerful way of to define entities that most conform a definition – in other words it allows us to specify properties for entities.
TypeScript uses data typing which is one of it's most important features for allowing developers to write better code.
TypeScript is a language developed by Microsoft that, among other things, has type support. In this article we'll discover its basics including how to setup your environment to work with this language.