File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ HTML5 provides us with lots of semantic elements aimed to describe precisely the
30
30
</main >
31
31
```
32
32
33
- Make sure you understand the semantic of the elements you're using. It's worse to use a semantic
33
+ Make sure you understand the semantics of the elements you're using. It's worse to use a semantic
34
34
element in a wrong way than staying neutral.
35
35
36
36
``` html
@@ -730,13 +730,12 @@ Favor `const` over `let` and `let` over `var`.
730
730
731
731
``` javascript
732
732
// bad
733
- var obj = {} ;
734
- obj[ " foo " + " bar " ] = " baz " ;
733
+ var me = new Map () ;
734
+ me . set ( " name " , " Ben " ). set ( " country " , " Belgium " ) ;
735
735
736
736
// good
737
- const obj = {
738
- [" foo" + " bar" ]: " baz"
739
- };
737
+ const me = new Map ();
738
+ me .set (" name" , " Ben" ).set (" country" , " Belgium" );
740
739
```
741
740
742
741
### Conditions
You can’t perform that action at this time.
0 commit comments