---
title: "Comment by FeStack on \"What are Double shots ( !! ) in JavaScript ?\" | Hashnode"
description: "Hi Akshay, I use this a lot during coding. This is the best way to check null or undefined I guess."
url: "https://hashnode.com/posts/what-are-double-shots-in-javascript/5f549038d34e0b0a2135b9ba/comment/5f54bc5cd34e0b0a2135babd"
---

[Discussion](https://hashnode.com/posts/what-are-double-shots-in-javascript/5f549038d34e0b0a2135b9ba)

Comment [What are Double shots ( !! ) in JavaScript ?](https://hashnode.com/posts/what-are-double-shots-in-javascript/5f549038d34e0b0a2135b9ba)

[FeStack](https://hashnode.com/@FeStack)

[Sep 6, 2020](https://hashnode.com/posts/what-are-double-shots-in-javascript/5f549038d34e0b0a2135b9ba/comment/5f54bc5cd34e0b0a2135babd)

Hi Akshay,

I use this a lot during coding. This is the best way to check null or undefined I guess.

[Akshay Sushir](https://hashnode.com/@axay)

[Sep 6, 2020](https://hashnode.com/posts/what-are-double-shots-in-javascript/5f549038d34e0b0a2135b9ba/comment/5f54bc5cd34e0b0a2135babd#reply-5f54bd2dd6e3120a423783e4)

Yes it converts 0, null or Undefined to Boolean true or false.
