diff --git a/README.md b/README.md index 9edd321c..aa38130a 100644 --- a/README.md +++ b/README.md @@ -907,7 +907,7 @@ Other Style Guides > Why? It shows clearly where the function starts and ends. - ```js + ```javascript // bad ['get', 'post', 'put'].map(httpMethod => Object.prototype.hasOwnProperty.call( httpMagicObjectWithAVeryLongName, @@ -929,7 +929,7 @@ Other Style Guides > Why? Less visual clutter. - ```js + ```javascript // bad [1, 2, 3].map((x) => x * x); @@ -957,7 +957,7 @@ Other Style Guides - [8.5](#arrows--confusing) Avoid confusing arrow function syntax (`=>`) with comparison operators (`<=`, `>=`). eslint: [`no-confusing-arrow`](http://eslint.org/docs/rules/no-confusing-arrow) - ```js + ```javascript // bad const itemHeight = item => item.height > 256 ? item.largeSize : item.smallSize; @@ -1351,7 +1351,7 @@ Other Style Guides > Why? `function` and `*` are part of the same conceptual keyword - `*` is not a modifier for `function`, `function*` is a unique construct, different from `function`. - ```js + ```javascript // bad function * foo() { // ...