mirror of https://github.com/01-edu/public.git
docs(nasa): correct grammar
This commit is contained in:
parent
73f49f0b23
commit
32be303ad4
|
@ -2,14 +2,13 @@
|
||||||
|
|
||||||
### Instructions
|
### Instructions
|
||||||
|
|
||||||
Create a `nasa` function that takes a number `N` as a parameter and returns
|
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:
|
||||||
a string with all numbers from 1 to the `N` separated by whitespace, with three exceptions:
|
|
||||||
|
|
||||||
- For numbers divisible by 3, add 'NA'.
|
- Convert numbers which are divisible by 3 to `"NA"`.
|
||||||
- For numbers divisible by 5, add 'SA'.
|
- Convert numbers which are divisible by 5 to `"SA"`.
|
||||||
- For the number that are divisible by 3 and 5 add 'NASA'.
|
- Convert numbers which are divisible by 3 *and* 5 to `"NASA"`.
|
||||||
|
|
||||||
### Notions
|
### Notions
|
||||||
|
|
||||||
- [nan-academy.github.io/js-training/examples/loops](https://nan-academy.github.io/js-training/examples/loops.js)
|
- [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)
|
- [Recursion](https://nan-academy.github.io/js-training/examples/recursion.js)
|
||||||
|
|
Loading…
Reference in New Issue