public/subjects/count-from-10
Clement Denis 8d2a02f417 add new picine-discovery exercises 2021-04-29 17:51:05 +01:00
..
README.md add new picine-discovery exercises 2021-04-29 17:51:05 +01:00

README.md

Count from 10

Instructions

Declare from10 function that takes an end number argument.

You must log each number starting at 10 until you reach the end value (included)

If the number is lower than 10 you must count down to it, otherwhise count up to it.

Example: from10(12) would log: 10 11 12

and from10(7) would log: 10 9 8 7