JavaScript Taskbook Level 4.2
Create a function that takes a number as a parameter and returns the sum of its digits.
Make a function that will take a number as a parameter and remove zeros from it.
Make a function that will return how many days have passed or are left until a given date in the year, depending on whether that date has already happened or not.
Make a function that will take a year as a parameter and check whether it is a leap year or not.
Make a function that returns an array of all leap years for the previous hundred years.
Make a function that will return how many days are left until the end of the current month.
Make a function that will return the previous, current and next days of the week in word as the following object:
{
next: 'Mon',
curr: 'Sun',
prev: 'Sat',
}