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 can be a tricky concept for beginners to understand, but they are an essential part of the language. In this tutorial….
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 is a concept in programming that is often used in dynamic programming languages such as JavaScript, Python, and Ruby. It is a….
Nullish coalescing is a new JavaScript feature, introduced in ES2020, that helps to handle or values more efficiently. It is represented….
Optional chaining is a new feature in JavaScript, introduced in ES2020, that allows you to safely access nested properties or methods….
You can overcome drawbacks of structural typing in TypeScript by creating nominal types with a little bit of extra code.
TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.
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.
The key distinction is that a type cannot be re-opened to add new properties vs an interface which is always extendable.