Skip to content
Become A Better Programmer
  • Articles
    • React
    • JavaScript
    • TypeScript
    • Rust
    • Node.js
    • Web3
    • PostgreSQL
    • Unit Tests
    • Git
    • Interested in Programming
    • Interesting and Fun Facts
    • Programmers’ Advice
    • Programmer’s Knowledge
    • Programmer’s Health
    • Jobs and Careers Advice
  • About Us
  • Contact Us

tips

Understanding the Question Mark (?:) in TypeScript

April 25, 2022December 14, 2021 by Andres Reales

The question mark (?:) in TypeScript is used to define a property or parameter as optional. This article shows examples to understand this concept and more.

Categories TypeScript Tags tips

TypeScript | Organizing and Storing Types and Interfaces

April 25, 2022September 22, 2021 by Andres Reales

Are you are new to TypeScript and want to start working on your first project? Some of the questions many developers ask are: How do you structure your types in a TypeScript project? What is the best way to structure your typings that is robust and expandable? Where to put interfaces and type aliases? and … Read more

Categories TypeScript Tags tips

TypeScript | Double Question Marks (??) – What it Means

April 25, 2022September 21, 2021 by Andres Reales

The double question marks (??) are also called nullish coalescing operators in TypeScript. They allow to use of a default value set on the right side of the operator in case the initial value from the left side of the operator is null or undefined.

Categories TypeScript Tags tips

TypeScript | Objects with Unknown Keys and Known Values

April 25, 2022September 18, 2021 by Andres Reales

Learn how to define object types with unknown keys and known values using TypeScript by explaining with easy code examples.

Categories TypeScript Tags tips

TypeScript | Declare an Empty Object for a Typed Variable

April 25, 2022September 16, 2021 by Andres Reales

Learn different ways to declare an empty object for a typed variable using TypeScript by presenting easy to follow examples

Categories TypeScript Tags tips

TypeScript | Union Types – Defining Multiple Types

April 25, 2022September 15, 2021 by Andres Reales

Use Union types allows you to define a variable as a string, or a number, or an array, or an object, etc. in TypeScript, which helps you define multiple types.

Categories TypeScript Tags tips

TypeScript | Convert Enums to Arrays

April 25, 2022September 15, 2021 by Andres Reales

Learn how to use enums in TypeScript, which are a special type not found in regular JavaScript allowing us to define constants.

Categories TypeScript Tags tips

About Us

Andrés Reales is the founder of Become a Better Programmer blogs and tutorials and Senior Full-Stack Software Engineer. With the purpose of helping others succeed in the always-evolving world of programming, Andrés gives back to the community by sharing his experiences and teaching his programming skillset gained over his years as a professional programmer.

Footer

  • Privacy Policy and Disclaimer
  • Terms and Conditions
  • About Us
  • Contact Us
  • Sitemap
© 2025 Become A Better Programmer
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkPrivacy policy