Skip to content

CamelCase in JS variables #26

danburzo opened this Issue May 13, 2011 · 1 comment

2 participants


The example you give for this section:

is, i believe, a good practice: variables that are supposed to be 'constant' (stuff like intervals, timeouts) can be differentiated by using ALL_CAPS. I'm sure you meant 'variables' in the general sense, so maybe it makes sense to change the example to something like:

var ARRAY_LENGTH = myArray.length; // bad
var arrayLength = myArray.length; // good

taitems commented Jun 11, 2011

Fixed locally, pending commit.

@taitems taitems closed this Jun 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.