---
title: "Discussion on \"Common TypeScript Types\" | Hashnode"
description: "Discussion on \"Common TypeScript Types\". TypeScript is JavaScript with syntax for types.\nHere are some common types and how we could use them:\n// number\nfunction add(a: number, b: number): number {\n  return a + b\n}\n\n// string and boolean\nfunction isStrLengthGreaterThan(str: string, len: num..."
url: "https://hashnode.com/posts/common-typescript-types/640fbc1400015b061b8f9151"
---

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

Discussion

# [Common TypeScript Types](https://bzzz.hashnode.dev/common-typescript-types?utm_source=hashnode&utm_medium=feed)

TypeScript is JavaScript with syntax for types. Here are some common types and how we could use them: // number function add(a: number, b: number): number { return a + b } // string and boolean function isStrLengthGreaterThan(str: string, len: num...

Mar 14, 2023 · 1 min read · bzzz.hashnode.dev  
Updated Mar 22, 2023  
Read the article

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

## Written by

[B Z](https://hashnode.com/@Bzzz)

@Bzzz

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

Software engineer, artist, paw parent of two sweet cats.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
