We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
functiondayOfProgrammer(year:number):string{// Write your code hereconstgetDay=()=>{if(year===1918)return26;if(year%4===0){if(year<1919||year%400===0||year%100!==0){return12};}return13;}return`${getDay()}.09.${year}`;}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day of the Programmer
You are viewing a single comment's thread. Return to all comments →
TS