@gayathri-v1
Posted
Hello there, Congratulations on completing this challenge!
This is amazing solution. I also have found the text "Last week" is not changing. I would suggest to use three functions, for daily, weekly, monthly and then you can add
previousTimeSpan.innerHTML = Last week - ${report.timeframes[timeframe].previous}hrs
;
previousTimeSpan.innerHTML = Yesterday - ${report.timeframes[timeframe].previous}hrs
;
previousTimeSpan.innerHTML = Last month- ${report.timeframes[timeframe].previous}hrs
;
In each function separately. You can check my code, I did the same. Although, I am not sure how efficient it would be I multiple function on same thing is used.
Marked as helpful