We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f129bfd commit 6bb56c4Copy full SHA for 6bb56c4
README.md
@@ -51,6 +51,7 @@
51
- [Math & Stats](#math--stats)
52
- [Integer Division Without Using \* or /](#integer-division-without-using--or-)
53
- [JavaScript Fundamentals](#javascript-fundamentals)
54
+ - [How to convert -ve to +ve number?](#how-to-convert--ve-to-ve-number)
55
- [Array slice](#array-slice)
56
- [Math.floor](#mathfloor)
57
- [Math.round](#mathround)
@@ -595,6 +596,13 @@ node .\src\math-and-stats\integer-division.js
595
596
597
## JavaScript Fundamentals
598
599
+### How to convert -ve to +ve number?
600
+
601
+```js
602
+Math.abs(-4) //4
603
+Math.abs(2) //2
604
+```
605
606
### Array slice
607
608
Slice does not mutate the original array.
0 commit comments