We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77f841d + 1a45126 commit c150433Copy full SHA for c150433
1 file changed
1-js/05-data-types/11-date/8-format-date-relative/solution.md
@@ -4,7 +4,7 @@
4
function formatDate(date) {
5
let diff = new Date() - date; // разница в миллисекундах
6
7
- if (diff < 1000) { // меньше 1 минуты
+ if (diff < 1000) { // меньше 1 секунды
8
return 'прямо сейчас';
9
}
10
0 commit comments