felixge / felixge/node-style-guide

declare functions

Open
#34 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
893
PR merge metrics
No merged PRs in 30d

Description

How about function declarations? It drives me nuts when I see

var packAssets;

packAssets = function(...) {
return packed;
}

I don't understand why people do this. If you call it before the declaration packAssets will be undefined.

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.