Hello NQE Enthusiasts,
Here is another Koan challenge. The task is to take a list of years and calculate the centuries
Input:
>1776, 2001, 1643, 1969];
Result
>{“Year”: 1776, “Century”: 18}...]
Hints:
Use string conversions like toString
Create a toNumber function
Try not to look at the replies until you have tried the challenge yourself.