Browse Source

docs(nasa): correct grammar

pull/1112/head
davhojt 2 years ago committed by Dav Hojt
parent
commit
32be303ad4
  1. 13
      subjects/nasa/README.md

13
subjects/nasa/README.md

@ -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)

Loading…
Cancel
Save