---
title: "Discussion on \"Data Types in TypeScript\" | Hashnode"
description: "Discussion on \"Data Types in TypeScript\". TypeScript provides several data types to work with. Here are the main types:\n\n# Primitive Types\n\n1. **Boolean**\n\n   ```typescript\n   let isDone: boolean = false;\n\n\nNumber\n let decimal: number = 6;\n let hex: number = 0xf00d;\n let binary: number = 0b1..."
url: "https://hashnode.com/posts/data-types-in-typescript/6780f466477db710f63c7744"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Data Types in TypeScript](https://soumya2022.hashnode.dev/data-types-in-typescript?utm_source=hashnode&utm_medium=feed)

TypeScript provides several data types to work with. Here are the main types: # Primitive Types 1. \*\*Boolean\*\* \`\`\`typescript let isDone: boolean = false; Number let decimal: number = 6; let hex: number = 0xf00d; let binary: number = 0b1...

Jan 10, 2025 · 1 min read · soumya2022.hashnode.dev  
Updated Jan 15, 2025  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#fsjs20](https://hashnode.com/tag/fsjs20)
-   [#hiteshchoudharylco](https://hashnode.com/tag/hiteshchoudharylco)
-   [#hiteshchaudhary](https://hashnode.com/tag/hiteshchaudhary)

## Written by

[Soumya Ranjan Mahanta](https://hashnode.com/@Soumya2022)

@Soumya2022 · ODISHA,INDIA

  
[View profile](https://hashnode.com/@Soumya2022)

Full Stack Web Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
