Published
- 1 min read
js math round up
The solution for this is noted below
js math round up
Solution
console.log(Math.ceil(0.2))
// expected output: 1
console.log(Math.ceil(4))
// expected output: 4
console.log(Math.ceil(7.004))
// expected output: 8
console.log(Math.ceil(-7.004))
// expected output: -7
Try other methods by searching on the site. That is if this doesn’t work