Skip to main content

How to remember JavaScript's weird capital letters in function names?

 They are written in a style called "lower camel case".


What is that?

Camel case (sometimes stylized as camelCase or CamelCase, also known as camel caps or more formally as medial capitals) is the practice of writing phrases without spaces or punctuation, indicating the separation of words with a single capitalized letter, and the first word starting with either case. Common examples include "iPhone" and "eBay". It is also sometimes used in online usernames such as "johnSmith", and to make multi-word domain names more legible, for example in promoting "EasyWidgetCompany.com".

Camel case is often used as a naming convention in computer programming, but is an ambiguous definition due to the optional capitalization of the first letter. Some programming styles prefer camel case with the first letter capitalised, others not.[1][2][3] For clarity, this article calls the two alternatives upper camel case (initial uppercase letter, also known as Initial CapitalsInitial CapsInitCaps or Pascal case) and lower camel case (initial lowercase letter, also known as dromedary case). Some people and organizations, notably Microsoft,[2] use the term camel case only for lower camel case.


Source: 

[https://en.wikipedia.org/wiki/Camel_case]

Comments

Popular posts from this blog

How to directly save ai(illustrator image) to large size png or jpg?

There is no need to convert ai file to psd in order to make png or jpg. Open the file in illustrator. Just click on an empty area on the canvas and press delete key in keyboard to delete the canvas(do ungroup of images if every images gets deleted). Delete all the images but the one we need. Then click "export as" png or jpg from file menu option. In the next screen, you can select the resolution. Below 300ppi, there is 'other'. Click it and enter 712ppi. Thus you will get large crystal clear image. Do this for all the images you need.

Ubuntu 20.04 : pytest command gives this output -> E ImportError: No module named selenium, even after installing selenium

 Your selenium files will be inside /usr/local/lib/python3.8/dist-packages/ You have to copy and paste them in /usr/local/lib/python2.7/dist-packages/ and /usr/local/lib/python2.7/site-packages/ The main problem is there is python2 and python3 installed in your computer and python2 is actively used by your system now. And selenium is within python3 folder.