Skip to content

Commit e0726e0

Browse files
committed
Code style
1 parent 6bbe5ec commit e0726e0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

JavaScript/5-default.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fnNew(1);
1212

1313
// Old style for default parameter values
1414
//
15-
function fnOld(a , b, c) {
15+
function fnOld(a, b, c) {
1616
b = b || 'Hello';
1717
c = c || 5;
1818
console.dir({ a, b, c });
@@ -31,6 +31,6 @@ function fnHash(args) {
3131
console.dir(args);
3232
}
3333

34-
fnHash({ a: [1, 2, 3], b: 'Hi', c : 3 });
34+
fnHash({ a: [1, 2, 3], b: 'Hi', c: 3 });
3535
fnHash({ b: 'World' });
3636
fnHash({ c: 7 });

JavaScript/b-call-apply.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@ function f1(a, b) {
66
console.log('f1(' + a + ', ' + b + ')');
77
}
88

9+
f1(2, 3);
910
f1.call(null, 2, 3);
11+
12+
f1(...[2, 3]);
1013
f1.apply(null, [2, 3]);

0 commit comments

Comments
 (0)