8000 Fix code style · HowProgrammingWorks/CommandLine@85b0dd1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 85b0dd1

Browse files
committed
Fix code style
1 parent 4f31174 commit 85b0dd1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

JavaScript/0-console.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ const obj = {
1818
name: 'Annia Cornificia Faustina Minor',
1919
city: 'Roma',
2020
born: 160,
21-
}
22-
]
21+
},
22+
],
2323
};
2424

2525
Object.defineProperty(obj, 'childCount', {
2626
enumerable: false,
2727
writable: false,
28-
value: 13
28+
value: 13,
2929
});
3030

3131
console.log({ obj });

JavaScript/1-readline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const readline = require('node:readline');
44

55
const rl = readline.createInterface({
66
input: process.stdin,
7-
output: process.stdout
7+
output: process.stdout,
88
});
99

1010
rl.question('Enter your name: ', (name) => {

JavaScript/2-await.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const readline = require('node:readline').promises;
66

77
const rl = readline.createInterface({
88
input: process.stdin,
9-
output: process.stdout
9+
output: process.stdout,
1010
});
1111

1212
const main = async () => {

JavaScript/3-prompt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const commands = {
1919
},
2020
exit() {
2121
rl.close();
22-
}
22+
},
2323
};
2424

2525
rl.on('line', (line) => {

0 commit comments

Comments
 (0)
0