Found 17 articles tagged with #typescript

JavaScript `this` Binding in Common Contexts

In JavaScript, the "this" keyword is very flexible and confusing, evaluated at runtime, can have different values depending in which context it appears.

JavaScript Closures Explained with Examples

JavaScript closures can be a tricky concept for beginners to understand, but they are an essential part of the language. In this tutorial….

JavaScript Source Maps Demystified

This mapping allows developers to view and debug the original source code, even when the production code has been compressed and optimized for performance.

Duck Typing in JavaScript

Duck typing is a concept in programming that is often used in dynamic programming languages such as JavaScript, Python, and Ruby. It is a….

JavaScript Nullish Coalescing

Nullish coalescing is a new JavaScript feature, introduced in ES2020, that helps to handle or values more efficiently. It is represented….

JavaScript Optional Chaining

Optional chaining is a new feature in JavaScript, introduced in ES2020, that allows you to safely access nested properties or methods….

How to Mimic Nominal Typing in TypeScript

You can overcome drawbacks of structural typing in TypeScript by creating nominal types with a little bit of extra code.

Learn TypeScript

TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.

TypeScript Structural Typing

If the type is shaped like a duck, it is a duck. If a goose has all the same attributes as a duck, then it also is a duck.

TypeScript Type Aliases vs Interfaces

The key distinction is that a type cannot be re-opened to add new properties vs an interface which is always extendable.

Mar 08, 2022#typescript