felixge / felixge/nodeguide.com

Code Conventions / Var declaration

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
368
Forks
40
PR merge metrics
No merged PRs in 30d

Description

I've read your comment about Crockforf and followed the link and he also says to use var the same way as you do :-)
"It is preferred that each variable be given its own line and comment. They should be listed in alphabetical order.

```
var currentEntry; // currently selected table entry
var level; // indentation level
var size; // size of table
```

"
I copied this code to JSLint and it passes. Seems Crockford changed his mind :-)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.