Question: JAVASCRIPT PLZ Write a function that takes a year as an argument, and returns the number of 'Friday the 13ths' in that year. You may
JAVASCRIPT PLZ
Write a function that takes a year as an argument, and returns the number of 'Friday the 13ths' in that year. You may assume that the year is greater than 1752 (when the modern Gregorian Calendar was adopted by the United Kingdom). You may also assume that the same calendar will remain in use for the foreseeable future.
EXAMPLE
fridayThe13ths(1986); // 1 fridayThe13ths(2015); // 3 fridayThe13ths(2017); // 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
