Answers for "display month friday 13th javascript year"

0

display month friday 13th javascript year

function numberOfFridaythe13thsIn(jahr) {
            var counter = 0;
            for (i = 1; i <= 12; i++) {
                var d = new Date(i + "/13/" + jahr);                          
                if (d.getDay() == 5) {
                    counter++;
                }
            }
            return counter;

        }
Posted by: Guest on October-08-2020

Code answers related to "display month friday 13th javascript year"

Code answers related to "Javascript"

Browse Popular Code Answers by Language