diff --git a/subjects/nasa/README.md b/subjects/nasa/README.md index 46f19146..d2178e5b 100644 --- a/subjects/nasa/README.md +++ b/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)