Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

CamelCase in JS variables #26

Closed
danburzo opened this Issue · 1 comment

2 participants

@danburzo

The example you give for this section:
var MOUSE_TIMEOUT = 30;

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
Owner

Fixed locally, pending commit.

@taitems taitems closed this
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.