---
title: "Comment by Caleb on \"10 best JavaScript practices recommended by Top Developers\" | Hashnode"
description: "Nice article! 👏 Btw just adding to the ~~x tip, bitwise operators only work with 32-bit numbers, so if you have a number that could be greater than 2147483647,"
url: "https://hashnode.com/posts/10-best-javascript-practices-recommended-by-top-developers/5fb3cc09a73df361ab710f3c/comment/5fbc802bec43af1ba6093cab"
---

[Discussion](https://hashnode.com/posts/10-best-javascript-practices-recommended-by-top-developers/5fb3cc09a73df361ab710f3c)

Comment [10 best JavaScript practices recommended by Top Developers](https://hashnode.com/posts/10-best-javascript-practices-recommended-by-top-developers/5fb3cc09a73df361ab710f3c)

[Caleb](https://hashnode.com/@caleb153)

[Nov 24, 2020](https://hashnode.com/posts/10-best-javascript-practices-recommended-by-top-developers/5fb3cc09a73df361ab710f3c/comment/5fbc802bec43af1ba6093cab)

Nice article! 👏

Btw just adding to the `~~x` tip, bitwise operators only work with 32-bit numbers, so if you have a number that could be greater than 2147483647, you'll likely get inaccurate results, and should use Math.floor.

Also an alternative to `~~x` is also `x | 0` (or `0 | x`, `x << 0`, etc.)
