Skip to content

Commit ab9ab64

Browse files
committed
up
1 parent 4ae1290 commit ab9ab64

File tree

476 files changed

+3370
-532
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

476 files changed

+3370
-532
lines changed

Diff for: 1-js/03-code-quality/02-coding-style/article.md

+2-2

Diff for: 1-js/04-object-basics/01-object/8-multiply-numeric/_js.view/test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
describe("multiplyNumeric", function() {
22
it("multiplies all numeric properties by 2", function() {
3-
var menu = {
3+
let menu = {
44
width: 200,
55
height: 300,
66
title: "My menu"
@@ -14,5 +14,5 @@ describe("multiplyNumeric", function() {
1414
it("returns nothing", function() {
1515
assert.isUndefined( multiplyNumeric({}) );
1616
});
17-
18-
});
17+
18+
});

Diff for: 1-js/04-object-basics/06-constructor-new/1-two-functions-one-object/task.md

+2-2

Diff for: 1-js/04-object-basics/06-constructor-new/article.md

+7-10

Diff for: 1-js/05-data-types/05-array-methods/article.md

+1-1

Diff for: 1-js/05-data-types/07-map-set-weakmap-weakset/02-filter-anagrams/solution.md

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function getWeekDay(date) {
2-
var days = ['SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA'];
2+
let days = ['SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA'];
33

44
return days[date.getDay()];
55
}

Diff for: 1-js/05-data-types/10-date/3-weekday/_js.view/solution.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function getLocalDay(date) {
22

3-
var day = date.getDay();
3+
let day = date.getDay();
44

55
if (day == 0) { // weekday 0 (sunday) is 7 in european
66
day = 7;

Diff for: 1-js/05-data-types/10-date/3-weekday/solution.md

+1-1

Diff for: 1-js/05-data-types/10-date/4-get-date-ago/_js.view/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ describe("getDateAgo", function() {
1818
});
1919

2020
it("does not modify the given date", function() {
21-
var date = new Date(2015, 0, 2);
22-
var dateCopy = new Date(date);
21+
let date = new Date(2015, 0, 2);
22+
let dateCopy = new Date(date);
2323
getDateAgo(dateCopy, 100);
2424
assert.equal(date.getTime(), dateCopy.getTime());
2525
});

Diff for: 1-js/05-data-types/10-date/8-format-date-relative/_js.view/solution.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function formatDate(date) {
1212
return sec + ' sec. ago';
1313
}
1414

15-
var min = Math.floor(diff / 60000); // convert diff to minutes
15+
let min = Math.floor(diff / 60000); // convert diff to minutes
1616
if (min < 60) {
1717
return min + ' min. ago';
1818
}

Diff for: 1-js/05-data-types/10-date/8-format-date-relative/solution.md

+1-1

Diff for: 1-js/06-more-functions/03-closure/article.md renamed to 1-js/06-advanced-functions/03-closure/article.md

+14-14

Diff for: 1-js/06-more-functions/04-global-object/article.md renamed to 1-js/06-advanced-functions/04-global-object/article.md

+3-3

0 commit comments

Comments
 (0)