How to Update an Object in an Array in TypeScript?

Update an Object in an Array in TypeScript

Recently, one of my team members asked me how to update a specific object within an array in TypeScript, a common task that can be handled in several efficient ways. Whether you’re working with simple objects or dealing with more complex structures, understanding how to correctly update an item in an array is essential for … Read more >>

Difference Between Protected vs Private in TypeScript

Difference Between Protected vs Private in TypeScript

TypeScript, a superset of JavaScript, introduces several features that enhance the development experience by adding static types. Among these features are access modifiers, which control the visibility and accessibility of class members. In this tutorial, we will explore the difference between the protected vs private in TypeScript, their use cases, and provide detailed examples to … Read more >>

Difference Between Let vs Const in TypeScript

When to Use let and const Variable in TypeScript

When declaring variables in TypeScript, you have three variables: let, const, and var. Understanding these variables is crucial for writing clean, maintainable, and error-free TypeScript code. In this tutorial, we’ll focus on the difference between let vs const in TypeScript, and when to use each one. Understand the let Variable in TypeScript The let the … Read more >>

Difference Between Record vs Object in TypeScript

Difference Between Record vs Object in TypeScript

TypeScript is a powerful language that builds on JavaScript by adding static type definitions. This feature helps developers catch errors early and ensures that their code is more predictable and maintainable. Among the many types available in TypeScript, understanding the difference between Record and Object is essential for every TypeScript developer. This tutorial will learn … Read more >>

How to Get Tomorrow’s Date in TypeScript

calculate tomorrow's date in typescript

While building a minor feature in our internal HR tool, I had to show the date for the next day based on user actions. Since we’re using TypeScript for the frontend, I looked into a few clean and reliable ways to calculate tomorrow’s date. In this tutorial, I’ll explain how to get tomorrow’s date in … Read more >>

Difference Between Enums vs String Literal Unions in TypeScript

TypeScript Enums vs Types Explained with Examples

When working with TypeScript, developers often need to reuse the methods or variables in many places or need clear labels. In TypeScript, String literal unions are simple and best for one-time use cases, and Enums give more structure and are useful when the options are reused in many places or need clear labels. Use string … Read more >>

How to Compare Dates Without Time in TypeScript

compare Dates Without Time in TypeScript

Recently, while working on a TypeScript feature for an internal tool, I needed to compare two dates, but only the date part, not the time. At first, I thought it would be straightforward, but I realised there are multiple ways to do it, and the results can vary depending on the method used. I tried … Read more >>

How to Get the Current Date in Milliseconds Using TypeScript

Get current date in milliseconds in typescript

While working as a Typescript developer on time-sensitive applications, I recently faced an issue where I needed to accurately capture and manipulate timestamps. It’s one of those settings that can make a big difference, especially when logging events, syncing data, or tracking real-time user actions. In this tutorial, I will explain how to get the … Read more >>

Difference Between void and undefined in TypeScript

void and undefined in TypeScript

In TypeScript, void and undefined are two distinct types that often cause confusion among developers. While they may seem similar at first glance, they serve different purposes and have unique characteristics. In this tutorial, we’ll dive deep into the difference between void and undefined in TypeScript, explore their use cases, and provide clear examples to … Read more >>

How to Get the Month from a Date in TypeScript

Get month from date in Typescript

Whether you’re working on a calendar app, generating reports, or performing date-based calculations, retrieving the month from a date is a common task. We’ll explore different methods to accomplish this and provide practical examples along the way. In this tutorial, I will explain how to extract the month from a date object in TypeScript. Understanding … Read more >>

51 Python Programs

51 PYTHON PROGRAMS PDF FREE

Download a FREE PDF (112 Pages) Containing 51 Useful Python Programs.

pyython developer roadmap

Aspiring to be a Python developer?

Download a FREE PDF on how to become a Python developer.

Let’s be friends

Be the first to know about sales and special discounts.