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

Steps for selenium testing with pytest, in windows 10 and windows 11

1) Download and Install python. (Don't forget to check the box next to "Add Python to PATH). Then click on "Install Now". After installation click on "Disable path length limit". Then click "close". 2) Install pip  Open command prompt and enter the following command: curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py Press Enter. If you are in C:\Users\vipin> location in command prompt, then this file will be downloaded to that place. Cut and paste the get-pip.py file to the python directory(C:\Users\vipin\AppData\Local\Programs\Python\Python310\). Change the current path of the directory in the command line, to the path of the directory where the above file exists. This is done by executing the following command in the command prompt : cd /users/vipin/appdata/local/programs/python/python310 Press Enter. Run the command given below: python get-pip.py Press Enter. and wait through the installation process. 3) Install pytest pip install -U p...