---
title: "Comment by Lukas Gaučas on \"JS: Difference between == & ===\" | Hashnode"
description: "Missing some TL;DR : == for values ( auto type conversion between comparisons are done internally) , whereas === for type AND value, whereas type takes preceden"
url: "https://hashnode.com/posts/js-difference-between-double-equal-and-tripple-equal/63e7d0100a88a9a1fec2b8a9/comment/63e82900c23c310c9a861182"
---

[Discussion](https://hashnode.com/posts/js-difference-between-double-equal-and-tripple-equal/63e7d0100a88a9a1fec2b8a9)

Comment [JS: Difference between == & ===](https://hashnode.com/posts/js-difference-between-double-equal-and-tripple-equal/63e7d0100a88a9a1fec2b8a9)

[Lukas Gaučas](https://hashnode.com/@projektorius96)

[Feb 11, 2023](https://hashnode.com/posts/js-difference-between-double-equal-and-tripple-equal/63e7d0100a88a9a1fec2b8a9/comment/63e82900c23c310c9a861182)

Missing some **TL;DR**:

`==` for values (_auto type conversion between comparisons_ are done internally) , whereas `===` for type AND value, whereas type takes precedence over value, if type does not match to, it short-circuits which leads to optimisation whatsoever .

Please correct if I am wrong . Thank you .

[Vedant Gannarpwar](https://hashnode.com/@vedant29)

[Feb 12, 2023](https://hashnode.com/posts/js-difference-between-double-equal-and-tripple-equal/63e7d0100a88a9a1fec2b8a9/comment/63e82900c23c310c9a861182#reply-63e89a23861f30240f6df311)

Bhai kehna kya chahte ho?

[Kamiya Gaikwad](https://hashnode.com/@Kamiya)

[Feb 12, 2023](https://hashnode.com/posts/js-difference-between-double-equal-and-tripple-equal/63e7d0100a88a9a1fec2b8a9/comment/63e82900c23c310c9a861182#reply-63e8a565861f30240f6df4a1)

Thank you for pointing that out. Will add that to my blog.

[Lukas Gaučas](https://hashnode.com/@projektorius96)

[Feb 12, 2023](https://hashnode.com/posts/js-difference-between-double-equal-and-tripple-equal/63e7d0100a88a9a1fec2b8a9/comment/63e82900c23c310c9a861182#reply-63e9453d768cc62a5a1019ae)

[Kamiya Gaikwad](https://hashnode.com/@Kamiya) Thanks for accepting my remark positively . Good luck !
