felixge / felixge/nodeguide.com

Code Conventions / Var declaration

Đang mở
#23 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
CSS
Star
368
Fork
40
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.