how to remove the desimal numbers in javascript code example
Example: how to remove the desimal numbers in javascript
let decimalNumber = 4.5
let number = Math.trunc(decimalNumber) // Resault: 4
let decimalNumber = 4.5
let number = Math.trunc(decimalNumber) // Resault: 4