... | ... | @@ -68,9 +68,9 @@ It is preferred that each variable be given its own line and comment. They shoul |
|
|
|
|
|
|
|
|
```javascript
|
|
|
var currentEntry; // currently selected table entry
|
|
|
var level; // indentation level
|
|
|
var size; // size of table
|
|
|
var currentEntry; // currently selected table entry
|
|
|
var level; // indentation level
|
|
|
var size; // size of table
|
|
|
```
|
|
|
JavaScript does not have block scope, so defining variables in blocks can confuse programmers who are experienced with other C family languages. Define all variables at the top of the function.
|
|
|
|
... | ... | |