Which casing looks better to you for a jQuery plugin:
$("#foo").runMyPlugin();
or
$("#foo").runmyplugin();
Is there a naming convention for jQuery that prefers on over the other?
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would recommend you the first one, that convention is widely used in JavaScript, even in the core language by itself, the ECMA Specification uses it, e.g.
All identifiers are named with camelCase, and only constructor functions are named with the first letter as capital (PascalCase).