Salesforce Fact #879 | Removing decimals in JS

In order to remove decimals from a number in JS, we can make use of the bitwise not operator. Same can be used in LWC. Attached is an example screenshot.
This blog contains some of the Salesforce facts which I have found quite interesting. Happy learning.