Skip to content

Commit 9365275

Browse files
committed
fixes
1 parent f3a3330 commit 9365275

File tree

12 files changed

+6
-5
lines changed

12 files changed

+6
-5
lines changed

1-js/05-data-types/03-string/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ Let's recap these methods to avoid any confusion:
443443

444444
| method | selects... | negatives |
445445
|--------|-----------|-----------|
446-
| `slice(start, end)` | from `start` to `end` | allows negatives |
446+
| `slice(start, end)` | from `start` to `end` (not including `end`) | allows negatives |
447447
| `substring(start, end)` | between `start` and `end` | negative values mean `0` |
448448
| `substr(start, length)` | from `start` get `length` characters | allows negative `start` |
449449

1-js/05-data-types/10-date/7-get-seconds-to-tomorrow/solution.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ function getSecondsToTomorrow() {
2222
let hour = now.getHours();
2323
let minutes = now.getMinutes();
2424
let seconds = now.getSeconds();
25-
let totalSecondsToday = (hour * 60 + minutes) * 60 + seconds;
25+
let totalSecondsToday = (hour * 60 + minutes) * 60 + seconds;
2626
let totalSecondsInADay = 86400;
27-
27+
2828
return totalSecondsInADay - totalSecondsToday;
2929
}
30-
3130
```
31+
32+
Please note that many countries have Daylight Savings Time (DST), so there may be days with 23 or 25 hours. We may want to treat such days separately.

2-ui/1-document/02-dom-nodes/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ There are only two top-level exclusions:
6363

6464
In other cases everything's straightforward -- if there are spaces (just like any character) in the document, then they become text nodes in DOM, and if we remove them, then there won't be any.
6565

66-
Here are no-space, text-only nodes:
66+
Here are no space-only text nodes:
6767

6868
```html no-beautify
6969
<!DOCTYPE HTML>
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

figures.sketch

255 KB
Binary file not shown.

0 commit comments

Comments
 (0)