docs(nasa): correct grammar

This commit is contained in:
davhojt 2022-05-01 19:19:58 +01:00 committed by Dav Hojt
parent 73f49f0b23
commit 32be303ad4
1 changed files with 6 additions and 7 deletions

View File

@ -2,14 +2,13 @@
### Instructions
Create a `nasa` function that takes a number `N` as a parameter and returns
a string with all numbers from 1 to the `N` separated by whitespace, with three exceptions:
Create a function named `nasa` that takes a number `N` as an argument and returns a string with all numbers from 1 to `N` separated by spaces. There are three exceptions:
- For numbers divisible by 3, add 'NA'.
- For numbers divisible by 5, add 'SA'.
- For the number that are divisible by 3 and 5 add 'NASA'.
- Convert numbers which are divisible by 3 to `"NA"`.
- Convert numbers which are divisible by 5 to `"SA"`.
- Convert numbers which are divisible by 3 *and* 5 to `"NASA"`.
### Notions
- [nan-academy.github.io/js-training/examples/loops](https://nan-academy.github.io/js-training/examples/loops.js)
- [nan-academy.github.io/js-training/examples/recursion](https://nan-academy.github.io/js-training/examples/recursion.js)
- [Loops](https://nan-academy.github.io/js-training/examples/loops.js)
- [Recursion](https://nan-academy.github.io/js-training/examples/recursion.js)