We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00b6f21 commit f783009Copy full SHA for f783009
2 files changed
js-coding-technique/decimal-base.js
@@ -0,0 +1,15 @@
1
+// Longhand:
2
+
3
+for (let i = 0; i < 10000; i++) {}
4
5
+// Shorthand:
6
7
+for (let i = 0; i < 1e7; i++) {}
8
9
+// All the below will evaluate to true
10
+1 === 1;
11
+1e1 === 10;
12
+1e2 === 100;
13
+1e3 === 1000;
14
+1e4 === 10000;
15
+1e5 === 100000;
js-coding-technique/object-property.js
@@ -0,0 +1,9 @@
+const x = 1920,
+ y = 1080;
+const obj = { x: x, y: y };
+const obj = { x, y }; // es6 features
0 commit comments