⊗jsPmFBPrm 216 of 504 menu

Practice on JavaScript functions

Create a function that takes a number as a parameter and returns an array of its divisors.

Create a function that takes two numbers as a parameter and returns an array of their common divisors.

Create a function that takes a number as a parameter and returns the sum of its digits.

Make a function that will return the current day of the week as a word.

Create a function that will receive a date as a parameter and return the day of the week as a word corresponding to this date.

Make a function that will take seconds as a parameter and return the number of days corresponding to these seconds.

Make a function that takes a year as a parameter and checks whether it is a leap year or not.

Make a function that takes a number as a parameter and checks whether it is prime or not.

byenru