fixed some spellings

This commit is contained in:
Keshav Bohra
2021-10-05 12:49:23 +05:30
parent 199d2637cc
commit 1589263947
41 changed files with 80 additions and 80 deletions

View File

@@ -22,9 +22,9 @@ const DateDayDifference = (date1, date2) => {
if (typeof date1 !== 'string' && typeof date2 !== 'string') {
return new TypeError('Argument is not a string.')
}
// extarct the first date
// extract the first date
const [firstDateDay, firstDateMonth, firstDateYear] = date1.split('/').map((ele) => Number(ele))
// extarct the second date
// extract the second date
const [secondDateDay, secondDateMonth, secondDateYear] = date2.split('/').map((ele) => Number(ele))
// check the both data are valid or not.
if (firstDateDay < 0 || firstDateDay > 31 ||