---
title: "Discussion on \"Type coercion in javascript\" | Hashnode"
description: "Discussion on \"Type coercion in javascript\". Open a console window and type \n1 < 2 < 3\nand the output will be true.\nSo far so good, lets try another example. Now type\n3 > 2 > 1  we get false.  whoops!\nTurns out  1 < 2 < 3  returning true was a complete accident and something else was going behi..."
url: "https://hashnode.com/posts/type-coercion-in-javascript/616307aa18374f2573272fd3"
---

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

Discussion

# [Type coercion in javascript](https://chandru.hashnode.dev/type-coercion-in-javascript?utm_source=hashnode&utm_medium=feed)

Open a console window and type 1 < 2 < 3 and the output will be true. So far so good, lets try another example. Now type 3 > 2 > 1 we get false. whoops! Turns out 1 < 2 < 3 returning true was a complete accident and something else was going behi...

Oct 10, 2021 · 2 min read · chandru.hashnode.dev  
Read the article

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

## Written by

[Chandra Prakash](https://hashnode.com/@chandraprakash)

@chandraprakash

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

I write javascript

## Responses 1

Markdown supported · ⌘↵ to post

[Gaurav Tewari](https://hashnode.com/@tewarig)

[Oct 11, 2021](https://hashnode.com/posts/type-coercion-in-javascript/616307aa18374f2573272fd3/comment/6163c14618374f2573273b59)

wow! awesome insights didn't know this...
