Skip to content

Commit 043151f

Browse files
committed
Remove round brackets in typeof
1 parent d5831d8 commit 043151f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

JavaScript/4-for-in-obj.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ hash.fifth = 2;
1212
for (const key in hash) {
1313
const value = hash[key];
1414
console.log(
15-
key, '\t', typeof(key), '\t',
16-
value, '\t', typeof(value)
15+
key, '\t', typeof key, '\t',
16+
value, '\t', typeof value
1717
);
1818
}

JavaScript/5-for-in-array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ numbers[5] = 20;
88

99
for (const i in numbers) {
1010
const value = numbers[i];
11-
console.log(i, typeof(i), value);
11+
console.log(i, typeof i, value);
1212
}

JavaScript/6-for-of.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ numbers[5] = 20;
88

99
for (const i of numbers) {
1010
const value = numbers[i];
11-
console.log(i, typeof(i), value);
11+
console.log(i, typeof i, value);
1212
}

0 commit comments

Comments
 (0)