@@ -680,14 +680,14 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
680
680
681
681
typeMap .set (' 10' , ' string' ); // a string key
682
682
typeMap .set (10 , ' number' ); // a numeric key
683
- typeMap .set (true , ' boolean' ); // a boolean key
683
+ typeMap .set (true , ' boolean' ); // a boolean key
684
684
typeMap .set (keyObj, ' object' ); // an object key
685
685
686
686
687
- console .log (typeMap .get (10 ) ); // number
688
- console .log (typeMap .get (' 10' ) ); // string
689
- console .log (typeMap .get (keyObj)) // object
690
- console .log (typeMap .get ({' one' : 1 })) // undefined
687
+ console .log (typeMap .get (10 )); // number
688
+ console .log (typeMap .get (' 10' )); // string
689
+ console .log (typeMap .get (keyObj)); // object
690
+ console .log (typeMap .get ({' one' : 1 })); // undefined
691
691
692
692
console .log (typeMap .size ); // 3
693
693
@@ -712,8 +712,8 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
712
712
` ` ` js
713
713
var weakMap = new WeakMap ();
714
714
715
- var obj1 = {}
716
- var obj2 = {}
715
+ var obj1 = {}
716
+ var obj2 = {}
717
717
718
718
719
719
weakMap .set (obj1, 1 );
@@ -738,7 +738,7 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
738
738
` ` ` js
739
739
let str = ' 𠮷' ;
740
740
741
- console .log (str .length ); // 2
741
+ console .log (str .length ); // 2
742
742
console .log (text .charAt (0 )); // ""
743
743
console .log (text .charAt (1 )); // ""
744
744
console .log (text .charCodeAt (0 )); // 55362(1st code unit)
@@ -765,7 +765,7 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
765
765
console .log (str .codePointAt (0 )); // 134071
766
766
console .log (str .codePointAt (1 )); // 57271
767
767
768
- console .log (String .fromCodePoint (134071 )); // "𠮷"
768
+ console .log (String .fromCodePoint (134071 )); // "𠮷"
769
769
` ` `
770
770
771
771
**[⬆ Back to Top](#table-of-contents)**
@@ -808,8 +808,8 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
808
808
809
809
// 3. Equality Checks
810
810
811
- console .log (Symbol (' foo' ) === Symbol (' foo' )); // false
812
- console .log (Symbol .for (' foo' ) === Symbol .for (' foo' )); // true
811
+ console .log (Symbol (' foo' ) === Symbol (' foo' )); // false
812
+ console .log (Symbol .for (' foo' ) === Symbol .for (' foo' )); // true
813
813
` ` `
814
814
815
815
**[⬆ Back to Top](#table-of-contents)**
@@ -872,7 +872,7 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
872
872
873
873
person .age = 30 ;
874
874
console .log (person .age ); // 30
875
- person .age = ' old' ; // Throws an exception
875
+ person .age = ' old' ; // Throws an exception
876
876
person .age = 200 ; // Throws an exception
877
877
` ` `
878
878
@@ -884,7 +884,7 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
884
884
885
885
It is in one of these states:
886
886
887
- **pending:** Represents initial state, neither fulfilled nor rejected.
887
+ **pending:** Represents initial state, neither fulfilled nor rejected.
888
888
**fulfilled:** Indicates that the operation is completed successfully.
889
889
**rejected:** Indicates that the operation is failed.
890
890
0 commit comments