Skip to content

Commit 6bb56c4

Browse files
committed
chore: added question
1 parent f129bfd commit 6bb56c4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
- [Math & Stats](#math--stats)
5252
- [Integer Division Without Using \* or /](#integer-division-without-using--or-)
5353
- [JavaScript Fundamentals](#javascript-fundamentals)
54+
- [How to convert -ve to +ve number?](#how-to-convert--ve-to-ve-number)
5455
- [Array slice](#array-slice)
5556
- [Math.floor](#mathfloor)
5657
- [Math.round](#mathround)
@@ -595,6 +596,13 @@ node .\src\math-and-stats\integer-division.js
595596

596597
## JavaScript Fundamentals
597598

599+
### How to convert -ve to +ve number?
600+
601+
```js
602+
Math.abs(-4) //4
603+
Math.abs(2) //2
604+
```
605+
598606
### Array slice
599607

600608
Slice does not mutate the original array.

0 commit comments

Comments
 (0)