Blog

Understanding Enums in TypeScript

Photo by Arnold Francisca on Unsplash Enums, short for enumerations, are a feature in TypeScript that allows us to define a set of named constants. Using enums can make it easier to handle a group of …

Understanding Generics in TypeScript

Photo by Nubelson Fernandes on Unsplash In TypeScript, generics are a powerful feature that allows us to create reusable and flexible components. Much like function arguments allow us to pass varying data to a function, generics …

Getter functions in Javascript

Photo by Christopher Gower on Unsplash In object-oriented programming, it’s a common practice to use functions to access the properties of an object. JavaScript provides a syntactic sugar for this pattern through getter functions. With the …