4 ms·
I try to stick to the most common conventions for the language I'm using. For JavaScript this means: * Classes use camelCase and start with an uppercase lette
by jameswyse 13y ago
I try to stick to the most common conventions for the language I'm using.
For JavaScript this means:
* Classes use camelCase and start with an uppercase letter: BlogPost
* Constants are all uppercase: PASSWORD
* All other variables (including function names) are camelCase: getAllPosts