Closed BenjaminRCooper closed 10 years ago
+1
+1 for methods, +1/-1 for properties... prefer to use underscores for vars/properties/params
Gotta disagree mate, underscores is a PHP convention, and it is more consistent to use camelCase I feel.
Thoughts?
Ben
+1
+1
I've always used camelCase in JS and not sure I've come across underscores being used, so I'd happily stick with this suggested standard.
Non-issue Benji. Happy either way. Just don't currently as it feels like capitalising them gives them too much importance.
Are you cool for us to stick with camelCase mate?
Ben
Yeah.
+1 for camelCase too.
Thanks mate
+1
Implemented
This allows for consistency and better readability, as it is considered a convention within JavaScript to use Camel Case when naming any custom properties or methods.
Example