mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
458 B
18 lines
458 B
5 years ago
|
## NASA
|
||
|
|
||
|
### Instructions
|
||
|
|
||
|
Create a `nasa` function that takes a number as parameter and returns all
|
||
|
numbers from 1 to the number passed as parameter, with three exception.
|
||
|
|
||
|
- 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'.
|
||
|
|
||
|
|
||
|
### Notions
|
||
|
|
||
|
- https://nan-academy.github.io/js-training/examples/loops.js
|
||
|
- https://nan-academy.github.io/js-training/examples/recursion.js
|