JQuery plugin naming convention (for function)

Which package looks better for the jQuery plugin:

$("#foo").runMyPlugin(); 

or

 $("#foo").runMyPlugin(); 

Is there a naming convention for jQuery that prefers over others?

Thanks in advance!

+6
jquery naming-conventions
source share
1 answer

I would recommend you the first that the convention is widely used in JavaScript, even in the main language, the constructor functions are called with the first letter as capital (PascalCase).

+7
source share

All Articles