You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Returns a date object with the specified offset added to the current date. * @param {number} offset - The number of days to add to the current date. * @returns {Object} An object containing the month, day, and year. * @example * getDateByOffset(10); // returns { month: "05 - May", day: "25", year: 2023 } */exportfunctiongetDateByOffset(offset){constdate=newDate(Date.now());constn=Number(offset);date.setDate(date.getDate()+n);constmonth=('0'+(date.getMonth()+1)).slice(-2);constmonthName=date.toLocaleString('default',{month: 'long'});constday=('0'+date.getDate()).slice(-2);constyear=date.getFullYear();return{month: month+' - '+monthName, day, year };}
User Story
No response
Acceptance Criteria
No response
The text was updated successfully, but these errors were encountered:
Description
Provide JSDOC documentation for our functions and test
https://jsdoc.app/
for example:
User Story
No response
Acceptance Criteria
No response
The text was updated successfully, but these errors were encountered: