Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.

Don’t waste another hour arguing over type vs interface. Here's what matters, what doesn't, and how to pick the right one without overthinking it.

You’re passing functions around like candy in your React app, but when TypeScript throws a tantrum, you start hacking with any or begging Google for help. Let’s fix that.

Functions are one of the most fundamental concepts in programming. They’re where your application’s logic lives and in TypeScript, they’re even more powerful thanks to static typing.

Explore the different types in TypeScript, including primitives, union and intersection types, type aliases, interfaces, and generics.

TypeScript is a typed version of JavaScript that helps catch errors early and improve code quality. Let me explains what it is, why it’s useful, and how to get started.

TypeScript's migration to a Go-based compiler boosts performance with faster builds, parallelized type-checking, and improved memory efficiency. Developers enjoy a seamless workflow with enhanced tooling.


Explore the role of TypeScript decorators in modern web development. Learn how decorators enhance code readability, simplify logic, and support powerful metadata features.

To create a responsive chart in a TypeScript application, use Chart.js—a popular library for data visualization. Set up your TypeScript project, install Chart.js and its types, and configure Webpack for bundling.

This guide covers sorting lists of objects in TypeScript, with examples for sorting by string, numeric, and date properties. It demonstrates using the sort() method, localeCompare for strings, custom sorting functions for dates and numbers, and multi-property sorting techniques.

This guide provides a comprehensive overview of these essential functions, complete with practical examples to illustrate their use in real-world applications. Enhance your coding skills and streamline data manipulation with TypeScript today.

TypeScript is a superset of JavaScript that introduces optional static types, enhancing code reliability and maintainability. It allows developers to define types for variables, functions, and objects, ensuring type safety at compile time.

Object spread in TypeScript allows for copying properties of objects or arrays using the spread operator (...), with later objects overwriting properties with the same name, and it can also be used to combine arrays or insert elements at specific positions.

TypeScript offers essential features that enhance JavaScript development, including static typing, type inference, and support for interfaces and generics. It provides tools like classes, enums, and modules, enabling better code structure.

In TypeScript, using interfaces helps define complex types, providing clarity and preventing runtime issues. Unlike JavaScript's var/let, interfaces explicitly outline object properties. This approach mirrors server-side coding practices, like in C#, ensuring adherence to coding standards and enhancing type safety.

Enum in Typescript defines a set of named constants, either numeric or string-based. It simplifies code readability and maintenance by providing a distinct set of values. Types of enums include Numeric, String, Heterogeneous, and Const enums. They are used to define and organize related constants, enhancing code clarity and maintainability.

Discover how to dynamically generate text content by replacing placeholders with actual data using a versatile TypeScript function. Enhance user engagement through personalized content delivery, applicable across various scenarios like email customization, report generation, and dynamic web content.

Compare JavaScript and TypeScript, including their typing models, object-oriented features, debugging, error detection, and client-side and server-side support.

Null handling in TypeScript involves managing null and undefined values effectively to prevent runtime errors. Techniques like nullable types, optional chaining, type guards, and non-null assertion operators help ensure code reliability.

WeakMap object stands out as a specialized entity, closely related to the Map object but with a unique twist. In this article, we'll unravel the syntax, characteristics, and methods of the JavaScript WeakMap, shedding light on its applications. How to harness its capabilities in ES8 and TypeScript.

When it comes to handling dates in JavaScript, understanding various date formats is essential for creating dynamic and user-friendly applications. The JavaScript Date object empowers developers to work with dates, and this guide explores three common date formats: ISO Date, Short Date, and Long Date.

JavaScript plays a vital role in enhancing the interactivity and functionality of web pages. However, the way scripts are loaded can significantly impact the user experience and overall performance of a website. In this article, we'll delve into the defer attribute in JavaScript.

The onscroll event in JavaScript is a powerful tool that gets triggered when a scrollbar is used for an element. This event is particularly useful for creating dynamic and interactive web experiences, allowing developers to respond to user interactions with scrolling.

Learn how to handle DOM scroll events with TypeScript type annotations, arrow functions, and optional chaining in JavaScript examples.

JavaScript scope is a fundamental concept that defines the region of execution where variables, expressions, and values can be referenced. There are two main scopes in JavaScript: global and local.

Page redirection is a crucial mechanism in web development that involves directing search engines and users to a different URL from the original one. This process can occur within the same server, across different servers, or even on distinct websites. Unlike refreshing a page, redirection is a deliberate action, often implemented using JavaScript to enhance user experience.

JavaScript closures are a powerful and often misunderstood feature that plays a pivotal role in creating flexible and efficient code. In this comprehensive guide, we will delve into the depths of closures, exploring their characteristics, scope chains, and practical implementations through four illustrative examples.

Callbacks in JavaScript play a pivotal role in handling asynchronous operations, enabling developers to execute code after the completion of a specific task. In this article, we'll explore the concept of callbacks, and delve into examples showcasing their utility.

In JavaScript, calculating the difference between two dates is a common task that arises in various scenarios, ranging from determining the duration between events to computing age. This comprehensive guide explores the intricacies of date differences using JavaScript.

The JavaScript Set object is a versatile tool for managing collections with unique values, accommodating various data types, including both primitive values and object references. In this article, we'll dive into the capabilities of the Set object in ES7 (ECMAScript 2016) and explore its usage in TypeScript.
Everything on TypeScript, not only its articles: the TypeScript page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article