You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The for...of statement creates a loop iterating over user defined collection object. Butthis loop can be used for built-in objects too.
@@ -733,7 +733,7 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
733
733
console.log(String.fromCodePoint(134071)); // "𠮷"
734
734
```
735
735
736
-
19. ### Symbols
736
+
18. ### Symbols
737
737
738
738
Symbol is a newpeculiar primitive data type of JavaScript, along with other primitive types such as string, number, boolean, null and undefined. Thenewsymbol is created just by calling the Symbolfunction. i.e, Every time you call the Symbol function, you’ll get a new and completely unique value. You can also pass a parameter to Symbol(), which is useful for debugging purpose only.
739
739
@@ -775,7 +775,7 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
The Proxy object is used to create a proxy for another object, which can intercept and redefine fundamental operations for that object such as property lookup, assignment, enumeration, function invocation etc. These are used in many libraries and some browser frameworks.
780
780
781
781
The proxy object is created with two parameters with below syntax,
@@ -854,28 +854,28 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
854
854
The promise chaining structure would be as below,
855
855
856
856
```js
857
-
const promise = new Promise(function(resolve, reject) {
858
-
setTimeout(() => resolve(1), 1000);
859
-
});
857
+
const promise = new Promise(function(resolve, reject) {
858
+
setTimeout(() => resolve(1), 1000);
859
+
});
860
860
861
-
promise.then(function(result) {
861
+
promise.then(function(result) {
862
862
863
-
console.log(result); // 1
864
-
return result * 2;
863
+
console.log(result); // 1
864
+
return result * 2;
865
865
866
-
}).then(function(result) {
866
+
}).then(function(result) {
867
867
868
-
console.log(result); // 2
869
-
return result * 3;
868
+
console.log(result); // 2
869
+
return result * 3;
870
870
871
-
}).then(function(result) {
871
+
}).then(function(result) {
872
872
873
-
console.log(result); // 6
874
-
return result * 4;
873
+
console.log(result); // 6
874
+
return result * 4;
875
875
876
-
}).catch(function(error){
877
-
console.log(error);
878
-
});
876
+
}).catch(function(error){
877
+
console.log(error);
878
+
});
879
879
```
880
880
881
881
21. ### Reflect
@@ -1002,7 +1002,7 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
1002
1002
1003
1003
6. **:**
1004
1004
1005
-
13. ### Binary and Octal
1005
+
22. ### Binary and Octal
1006
1006
ES5 provided numeric literals in octal (prefix 0), decimal (no prefix), and hexadecimal ( 0x) representation. ES6 added support for binary literals and improvements on octal literals.
0 commit comments