Skip to content

Commit 5834cff

Browse files
authored
Merge pull request #173 from codewizardshq/fix-math-ceil
Update the Math.ceil example
2 parents 462dd9d + 20cf4e7 commit 5834cff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/javascript/javascript-language.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ To round a number up, use `Math.ceil()`:
15981598

15991599
```javascript
16001600
var roundedNumber = Math.ceil(4.2);
1601-
console.log(roundedNumber); // 4
1601+
console.log(roundedNumber); // 5
16021602
```
16031603

16041604
To round a number to the nearest integer, use `Math.round()`:

0 commit comments

Comments
 (0)