---
title: "Discussion on \"What is type coercion in javascript and how is it different from type conversion?\" | Hashnode"
description: "Discussion on \"What is type coercion in javascript and how is it different from type conversion?\". First, let us start easy by taking a look at type conversion.\nIn type conversion, we are explicitly mentioning the data type we want the variable holding the value to be converted to. Let us look at a few examples of type conversion\nconst inputYear =..."
url: "https://hashnode.com/posts/what-is-type-coercion-in-javascript-and-how-is-it-different-from-type-conversion/61d133db0413645f5c7bd309"
---

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

Discussion

# [What is type coercion in javascript and how is it different from type conversion?](https://varun19.hashnode.dev/what-is-type-coercion-in-javascript-and-how-is-it-different-from-type-conversion?utm_source=hashnode&utm_medium=feed)

First, let us start easy by taking a look at type conversion. In type conversion, we are explicitly mentioning the data type we want the variable holding the value to be converted to. Let us look at a few examples of type conversion const inputYear =...

Jan 2, 2022 · 4 min read · varun19.hashnode.dev  
Updated Jun 12, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-books](https://hashnode.com/tag/javascript-books)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#coding](https://hashnode.com/tag/coding)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Varun Tadimeti](https://hashnode.com/@Varun19)

@Varun19 · India

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

I like the web developer in me :)

I am an aspiring developer. I like to code and play badminton

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
