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.
functionlibraryFine(d1,m1,y1,d2,m2,y2){// Write your code hereletyD=y1-y2;letmD=(y1===y2)?m1-m2:0;letdD=(y1===y2&&m1===m2)?d1-d2:0;letfee=yD>0?10000:mD>0?mD*500:dD>0?dD*15:0;returnfee}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Library Fine
You are viewing a single comment's thread. Return to all comments →
JavaScript