felixge / felixge/nodeguide.com

Code Conventions / Var declaration

オープン
#23 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
CSS
スター
368
フォーク
40
PR マージ指標
30日以内にマージされた PR はありません

説明

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 :-)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。