diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2019-07-14 03:02:06 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2019-07-14 03:02:06 -0400 |
| commit | 3c337b41150bb452e23329477ed1c9f35c9680ce (patch) | |
| tree | 215bb958087c7992f3378093f8182649ad1ae144 /static/build.html | |
| parent | ddb03f815d33523a0526d38e3cf6fe423906b4bf (diff) | |
clarify coding guidelines
Diffstat (limited to 'static/build.html')
| -rw-r--r-- | static/build.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/build.html b/static/build.html index 1af8964c..14f74734 100644 --- a/static/build.html +++ b/static/build.html @@ -632,7 +632,7 @@ export PATH="$PATH:$HOME/sdk/tools:$HOME/sdk/tools/bin:$HOME/sdk/platform-tools: <p>For JavaScript, put <code>"use strict";</code> at the top of every file, end lines with semicolons (since automatic insertion is poorly designed) and always use - <code>const</code> to declare variables, unless they are mutated in which case they + <code>const</code> to declare variables, unless they are reassigned in which case they should be declared with <code>let</code> but never use <code>var</code> as it is effectively broken. Try to prefer loops with <code>for..of</code>.</p> |
