We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 535bbce commit 6f99ce8Copy full SHA for 6f99ce8
JavaScript/1-object.js
@@ -7,7 +7,7 @@ const p1 = {
7
day: 26,
8
month: 4,
9
year: 121,
10
- }
+ },
11
};
12
13
const date = `${p1.born.year}-${p1.born.month}-${p1.born.day}`;
JavaScript/3-file.dat
@@ -0,0 +1 @@
1
+�o"name"Marcus"city"Roma"borno"dayI4"monthI"yearI�{{
JavaScript/4-hex.js
@@ -3,13 +3,15 @@
3
const fs = require('node:fs');
4
5
const v8File = './3-file.dat';
6
+
fs.readFile(v8File, (err, data) => {
+ if (err) return void console.log(err);
console.log(
data
.toString('hex')
.toUpperCase()
.split('')
- .map((c, i) => ((i % 2 !== 0) ? (c + ' ') : c))
- .join('')
14
+ .map((c, i) => (i % 2 !== 0 ? c + ' ' : c))
15
+ .join(''),
16
);
17
});
0 commit comments