---
title: "Discussion on \"Type Casting in JavaScript\" | Hashnode"
description: "Discussion on \"Type Casting in JavaScript\". Introduction\nType casting is the conversion of a type of data from one type to another. In javascript, converting a datatype is a bit weird but exciting in how they behave in different conditions. One can do typecasting in two different ways:\n\nExplic..."
url: "https://hashnode.com/posts/type-casting-in-javascript/6307cc2379f56556d0cbb755"
---

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

Discussion

# [Type Casting in JavaScript](https://ankithere.hashnode.dev/type-casting-in-javascript?utm_source=hashnode&utm_medium=feed)

Introduction Type casting is the conversion of a type of data from one type to another. In javascript, converting a datatype is a bit weird but exciting in how they behave in different conditions. One can do typecasting in two different ways: Explic...

Aug 25, 2022 · 5 min read · ankithere.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-type-coercion](https://hashnode.com/tag/javascript-type-coercion)
-   [#js](https://hashnode.com/tag/js)
-   [#type-casting](https://hashnode.com/tag/type-casting)
-   [#coercion](https://hashnode.com/tag/coercion)

## Written by

[Ankit Dixit](https://hashnode.com/@ankithere)

@ankithere

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

## Responses 1

Markdown supported · ⌘↵ to post

[Siddhartha Bajpai](https://hashnode.com/@sidd293)

[Aug 26, 2022](https://hashnode.com/posts/type-casting-in-javascript/6307cc2379f56556d0cbb755/comment/6308f21c4d50fd71142c79dc)

nice...detailed explanation 🙌🙌

[Ankit Dixit](https://hashnode.com/@ankithere)

[Aug 26, 2022](https://hashnode.com/posts/type-casting-in-javascript/6307cc2379f56556d0cbb755/comment/6308f21c4d50fd71142c79dc#reply-6309091738843b7139783580)

Thank You :)
