Skip to content

Commit ecd93e9

Browse files
committed
fixes
1 parent 2aedc2d commit ecd93e9

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

1-js/05-data-types/11-date/article.md

+7
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ To create a new `Date` object call `new Date()` with one of the following argume
3333

3434
It's a lightweight numeric representation of a date. We can always create a date from a timestamp using `new Date(timestamp)` and convert the existing `Date` object to a timestamp using the `date.getTime()` method (see below).
3535

36+
Dates before 01.01.1970 have negative timestamps, e.g.:
37+
```js run
38+
// 31 Dec 1969
39+
let Dec31_1969 = new Date(-24 * 3600 * 1000);
40+
alert( Dec31_1969 );
41+
```
42+
3643
`new Date(datestring)`
3744
: If there is a single argument, and it's a string, then it is parsed automatically. The algorithm is the same as `Date.parse` uses, we'll cover it later.
3845

2-ui/3-event-details/1-mouse-events-basics/article.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ The most used simple events are:
2121
`mousemove`
2222
: Every mouse move over an element triggers that event.
2323

24+
`contextmenu`
25+
: Triggers when opening a context menu is attempted. In the most common case, that happens when the right mouse button is pressed. Although, there are other ways to open a context menu, e.g. using a special keyboard key, so it's not exactly the mouse event.
26+
2427
...There are several other event types too, we'll cover them later.
2528

2629
### Complex events
2730

2831
`click`
2932
: Triggers after `mousedown` and then `mouseup` over the same element if the left mouse button was used.
3033

31-
`contextmenu`
32-
: Triggers after `mousedown` if the right mouse button was used.
33-
3434
`dblclick`
3535
: Triggers after a double click over an element.
3636

0 commit comments

Comments
 (0)