Thanks to visit codestin.com Credit goes to github.com
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 3dead74 commit cebd8f3Copy full SHA for cebd8f3
.eslintrc.json
@@ -8,9 +8,6 @@
8
"parserOptions": {
9
"ecmaVersion": 2020
10
},
11
- "globals": {
12
- "BigInt": true
13
- },
14
"rules": {
15
"indent": [
16
"error",
@@ -213,7 +210,7 @@
213
210
],
214
211
"arrow-parens": [
215
212
216
- "as-needed"
+ "always"
217
218
"arrow-body-style": [
219
JavaScript/2-const-let.js
@@ -3,7 +3,7 @@
3
console.dir({ hoisted }); // { hoisted: undefined }
4
hoisted = 5; // Assign 5 to hoisted
5
console.dir({ hoisted }); // { hoisted: 5 }
6
-var hoisted; // Declare hoisted
+let hoisted; // Declare hoisted
7
let scalarVariable = 6;
const scalarConstant = 7;
JavaScript/6-parse.js
@@ -1,8 +1,8 @@
1
'use strict';
2
-console.log(parseInt('11', 2)); // 3
-console.log(parseInt('11', 8)); // 9
-console.log(parseInt('11', 16)); // 17
+console.log(0b11); // 3
+console.log(0o11); // 9
+console.log(0x11); // 17
console.log(parseInt(5, 10)); // 5
console.log(parseInt('5', 10)); // 5
@@ -25,7 +25,7 @@ console.log(0.0000005, parseInt(0.0000005, 10)); // 5e-7 5
25
console.log(0.000005, parseInt(0.000005, 10)); // 0.000005 0
26
27
// 255
28
-console.log(parseInt('fF', 16));
+console.log(0xfF);
29
console.log(parseInt('0xff', 16));
30
console.log(parseInt('0xFf', 16));
31
console.log(parseInt(' 0xFf ', 16));
@@ -36,7 +36,7 @@ console.log(parseInt('ff', 8));
36
console.log(parseInt('ff', 10));
37
console.log(parseInt('ff', 15));
38
39
-console.log(parseInt('ff', 16)); // 255
+console.log(0xff); // 255
40
console.log(parseInt('ff', 17)); // 270
41
console.log(parseInt('ff', 20)); // 315
42
console.log(parseInt('ff', 30)); // 465
0 commit comments