Skip to content

Commit c7c834e

Browse files
committed
Update code style
1 parent 313e1da commit c7c834e

File tree

8 files changed

+1279
-10
lines changed

8 files changed

+1279
-10
lines changed

JavaScript/4-object.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const welcome = person => {
3+
const welcome = (person) => {
44
console.log(`Ave, ${person.name}!`);
55
};
66

JavaScript/5-array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const welcome = person => {
3+
const welcome = (person) => {
44
console.log(`Ave, ${person.name}!`);
55
};
66

JavaScript/6-hash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const welcome = person => {
3+
const welcome = (person) => {
44
console.log(`Ave, ${person.name}!`);
55
};
66

Solutions/3-hello.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const hello = name => {
3+
const hello = (name) => {
44
console.log(`Hello, ${name}!`);
55
};
66

Solutions/6-calculate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict';
22

3-
const square = x => x * x;
3+
const square = (x) => x * x;
44

5-
const cube = x => x ** 3;
5+
const cube = (x) => x ** 3;
66

77
const average = (a, b) => (a + b) / 2;
88

Solutions/9-array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const phonebook = [
55
{ name: 'Timur', phone: '+380661874632' },
66
];
77

8-
const findPhoneByName = name => {
8+
const findPhoneByName = (name) => {
99
for (const obj of phonebook) {
1010
if (obj.name === name) return obj.phone;
1111
}

Solutions/a-hash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ const phonebook = {
55
Timur: '+380661874632',
66
};
77

8-
const findPhoneByName = name => phonebook[name];
8+
const findPhoneByName = (name) => phonebook[name];
99

1010
module.exports = { phonebook, findPhoneByName };

0 commit comments

Comments
 (0)