---
title: "Comment by George Jempty (Dexygen) on \"What are Double shots ( !! ) in JavaScript ?\" | Hashnode"
description: "I used to use !!foobar But now use Boolean (foobar); // function, NOT object preceded by new As it expresses the intent more clearly."
url: "https://hashnode.com/posts/what-are-double-shots-in-javascript/5f549038d34e0b0a2135b9ba/comment/5f55365cfb6cc91069300cf3"
---

[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)

[George Jempty (Dexygen)](https://hashnode.com/@dexygen)

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

I used to use

```
!!foobar
```

But now use

```
Boolean(foobar); // function, NOT object preceded by new
```

As it expresses the intent more clearly.
