mirror of https://github.com/01-edu/public.git
docs(abs): correct grammar
This commit is contained in:
parent
606eaaa0d5
commit
c4afeee6a1
|
@ -2,23 +2,19 @@
|
||||||
|
|
||||||
### Instructions
|
### Instructions
|
||||||
|
|
||||||
Create a `isPositive` function that takes a number as
|
Create a function named `isPositive` that takes a number as a argument, returning `true` if the number is strictly positive, and `false` otherwise.
|
||||||
parameter and return true if the given number is
|
|
||||||
stricly positive, or false otherwise
|
|
||||||
|
|
||||||
Create the `abs` function that takes one number argument
|
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()`.
|
||||||
and returns its absolute value.
|
|
||||||
You are not allowed to use `Math.abs`, make your own.
|
|
||||||
|
|
||||||
### Notions
|
### Notions
|
||||||
|
|
||||||
- [nan-academy.github.io/js-training/examples/functions.js](https://nan-academy.github.io/js-training/examples/functions.js)
|
- [Functions](https://nan-academy.github.io/js-training/examples/functions.js)
|
||||||
- [nan-academy.github.io/js-training/examples/ternary.js](https://nan-academy.github.io/js-training/examples/ternary.js)
|
- [Ternary](https://nan-academy.github.io/js-training/examples/ternary.js)
|
||||||
- [devdocs.io/javascript/global_objects/math/abs](https://devdocs.io/javascript/global_objects/math/abs)
|
- [Math.abs](https://devdocs.io/javascript/global_objects/math/abs)
|
||||||
|
|
||||||
### Code provided
|
### Code provided
|
||||||
|
|
||||||
> all code provided will be added to your solution and does not need to be submited.
|
> The provided code will be added to your solution, and does not need to be submitted.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
Math.abs = undefined
|
Math.abs = undefined
|
||||||
|
|
Loading…
Reference in New Issue