freeCodeCamp/curriculum/challenges/arabic/08-coding-interview-prep/rosetta-code/day-of-the-week.arabic.md

1.3 KiB

title id challengeType videoUrl localeTitle
Day of the week 5966f99c45e8976909a85575 5

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'assert(typeof findXmasSunday === "function", "<code>findXmasSunday</code> is a function.");'
  - text: ''
    testString: 'assert(typeof findXmasSunday(2000, 2100) === "object", "<code>findChristmasSunday(2000, 2100)</code> should return an array.");'
  - text: ''
    testString: 'assert.deepEqual(findXmasSunday(1970, 2017), firstSolution, "<code>findChristmasSunday(2008, 2121</code> should return [1977, 1983, 1988, 1994, 2005, 2011, 2016]");'
  - text: ''
    testString: 'assert.deepEqual(findXmasSunday(2008, 2121), secondSolution, "<code>findChristmasSunday(2008, 2121</code> should return [2011, 2016, 2022, 2033, 2039, 2044, 2050, 2061, 2067, 2072, 2078, 2089, 2095, 2101, 2107, 2112, 2118]");'

Challenge Seed

function findXmasSunday (start, end) {
  // Good luck!
  return true;
}

After Test

console.info('after the test');

Solution

// solution required