public/subjects/abs
davhojt c4afeee6a1
docs(abs): correct grammar
2022-05-01 16:14:20 +01:00
..
README.md docs(abs): correct grammar 2022-05-01 16:14:20 +01:00

README.md

Abs

Instructions

Create a function named isPositive that takes a number as a argument, returning true if the number is strictly positive, and false otherwise.

Create a function named abs that takes a number as an argument and returns its absolute value. You must make your own implementation. You must not use Math.abs().

Notions

Code provided

The provided code will be added to your solution, and does not need to be submitted.

Math.abs = undefined