Skip to content

Commit 186f1ab

Browse files
authored
Link to detailed explanation
1 parent 7732971 commit 186f1ab

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

js/red-javascript-style-guide/readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ window.setTimeout(() => {
310310

311311
### `this` and `class`
312312

313+
[Read Why disallow the class keyword](https://github.com/GrosSacASac/JavaScript-Set-Up/blob/master/js/red-javascript-style-guide/why-disallow-class.md)
314+
313315
Avoid `this`. And associated `bind`, `call`, `apply`, `class`, `prototype`, `super`, `new`, `extends`, `Object.create`, `Object.setPrototypeOf`, `Object.getPrototypeOf`, `__proto__`, `instanceof`, `typeof`, `.prototype.isPrototypeOf`.
314316

315317
Any function can return an object, any function can take an object as first argument and operate on it. Every function can compose or combine results of other functions.

0 commit comments

Comments
 (0)