Skip to content

Commit 79356bb

Browse files
authored
Merge pull request #7 from javascript-tutorial/master
Repo Update
2 parents 4e04bcb + fcfef6a commit 79356bb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: 1-js/04-object-basics/01-object/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# Objects
33

4-
As we know from the chapter <info:types>, there are seven data types in JavaScript. Six of them are called "primitive", because their values contain only a single thing (be it a string or a number or whatever).
4+
As we know from the chapter <info:types>, there are eight data types in JavaScript. Seven of them are called "primitive", because their values contain only a single thing (be it a string or a number or whatever).
55

66
In contrast, objects are used to store keyed collections of various data and more complex entities. In JavaScript, objects penetrate almost every aspect of the language. So we must understand them first before going in-depth anywhere else.
77

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Besides the given methods, there are two special ones that do not have a UTC-var
124124
: Returns the timestamp for the date -- a number of milliseconds passed from the January 1st of 1970 UTC+0.
125125

126126
[getTimezoneOffset()](mdn:js/Date/getTimezoneOffset)
127-
: Returns the difference between the local time zone and UTC, in minutes:
127+
: Returns the difference between UTC and the local time zone, in minutes:
128128

129129
```js run
130130
// if you are in timezone UTC-1, outputs 60

Diff for: 1-js/09-classes/02-class-inheritance/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Animal {
1616
this.name = name;
1717
}
1818
run(speed) {
19-
this.speed += speed;
19+
this.speed = speed;
2020
alert(`${this.name} runs with speed ${this.speed}.`);
2121
}
2222
stop() {
@@ -124,7 +124,7 @@ class Animal {
124124
}
125125
126126
run(speed) {
127-
this.speed += speed;
127+
this.speed = speed;
128128
alert(`${this.name} runs with speed ${this.speed}.`);
129129
}
130130

0 commit comments

Comments
 (0)