---
title: "Discussion on \"[TypeScript] Optional & Default Parameter\" | Hashnode"
description: "Discussion on \"[TypeScript] Optional & Default Parameter\". n this article, I will be covering what an optional parameter is, and talk a little bit about the difference between JavaScript and TypeScript."
url: "https://hashnode.com/posts/typescript-optional-default-parameter/6479afb768c73be8bfc40cfc"
---

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

Discussion

# [\[TypeScript\] Optional & Default Parameter](https://jaylog.hashnode.dev/typescript-optional-default-parameter?utm_source=hashnode&utm_medium=feed)

n this article, I will be covering what an optional parameter is, and talk a little bit about the difference between JavaScript and TypeScript.

Jun 2, 2023 · 2 min read · jaylog.hashnode.dev  
Updated Nov 25, 2024  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#optional-parameter](https://hashnode.com/tag/optional-parameter)

## Written by

[Lim Woojae](https://hashnode.com/@jaylog)

@jaylog · Sydney

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

Computer Science @UNSW

## Responses 2

Markdown supported · ⌘↵ to post

[Bhargav](https://hashnode.com/@bhargav99)

[Jun 2, 2023](https://hashnode.com/posts/typescript-optional-default-parameter/6479afb768c73be8bfc40cfc/comment/647a1a1e1c128bf71962a070)

Good read. Clear explanations.

[Lim Woojae](https://hashnode.com/@jaylog)

[Jun 3, 2023](https://hashnode.com/posts/typescript-optional-default-parameter/6479afb768c73be8bfc40cfc/comment/647a1a1e1c128bf71962a070#reply-647abd1a1c128bf71962aa7e)

Hi. Thank you for reading!

[Bryan King Pecho](https://hashnode.com/@bkpecho)

[Jun 2, 2023](https://hashnode.com/posts/typescript-optional-default-parameter/6479afb768c73be8bfc40cfc/comment/647a101468c73be8bfc4187f)

Great explanation of optional parameters in TypeScript! It's interesting to see the difference between JavaScript and TypeScript in handling function parameters.

[Lim Woojae](https://hashnode.com/@jaylog)

[Jun 2, 2023](https://hashnode.com/posts/typescript-optional-default-parameter/6479afb768c73be8bfc40cfc/comment/647a101468c73be8bfc4187f#reply-647a17b41c128bf719629ff3)

Hi! Thank you for commenting. I am happy that you have seen the difference between those two!
