From c4afeee6a10c72b0f34932645bcf3e79d6621910 Mon Sep 17 00:00:00 2001 From: davhojt Date: Sun, 1 May 2022 16:14:20 +0100 Subject: [PATCH] docs(abs): correct grammar --- subjects/abs/README.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/subjects/abs/README.md b/subjects/abs/README.md index f329eac7..c3954f5b 100644 --- a/subjects/abs/README.md +++ b/subjects/abs/README.md @@ -2,23 +2,19 @@ ### Instructions -Create a `isPositive` function that takes a number as -parameter and return true if the given number is -stricly positive, or false otherwise +Create a function named `isPositive` that takes a number as a argument, returning `true` if the number is strictly positive, and `false` otherwise. -Create the `abs` function that takes one number argument -and returns its absolute value. -You are not allowed to use `Math.abs`, make your own. +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 -- [nan-academy.github.io/js-training/examples/functions.js](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) -- [devdocs.io/javascript/global_objects/math/abs](https://devdocs.io/javascript/global_objects/math/abs) +- [Functions](https://nan-academy.github.io/js-training/examples/functions.js) +- [Ternary](https://nan-academy.github.io/js-training/examples/ternary.js) +- [Math.abs](https://devdocs.io/javascript/global_objects/math/abs) ### 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 Math.abs = undefined