Skip to content

Commit c590e50

Browse files
committed
line 34
There is no variable named date prior to this mention. We could keep `.getTime( )` as is, or use the variable `now` or `Jan01_1970`.
1 parent ea7738b commit c590e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ To create a new `Date` object call `new Date()` with one of the following argume
3131

3232
An integer number representing the number of milliseconds that has passed since the beginning of 1970 is called a *timestamp*.
3333

34-
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).
34+
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 `.getTime()` method (see below).
3535

3636
Dates before 01.01.1970 have negative timestamps, e.g.:
3737
```js run

0 commit comments

Comments
 (0)