We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a30247 commit 11686e6Copy full SHA for 11686e6
docs/const.md
@@ -62,4 +62,6 @@ foo.bar = 456; // Allowed!
62
console.log(foo); // { bar: 456 }
63
```
64
65
-For this reason I recommend using `const` with primitives or immutable data structures.
+#### Prefer const
66
+
67
+Always use `const`, unless you plan to either lazily initialization of a variable, or do a reassignment (use `let` for those cases).
0 commit comments