From 32be303ad4655e68dd522e95924b81c7344133d0 Mon Sep 17 00:00:00 2001 From: davhojt Date: Sun, 1 May 2022 19:19:58 +0100 Subject: [PATCH] docs(nasa): correct grammar --- subjects/nasa/README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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)