In JavaScript, camel case naming refers to when a variable name or function name is a unique identifier composed of one or more words connected together, the first letter starts with a lowercase letter, and the first letter starts with a lowercase letter. The first letter of each word after the beginning of the second word is capitalized; for example, "myFirstName".
The operating environment of this tutorial: Windows 10 system, JavaScript version 1.8.5, Dell G3 computer.
JavaScript generally uses camel case naming.
Camel-style nomenclature is when a variable name or function name is a unique identifier composed of one or more words connected together. The first word starts with a lowercase letter; starting with the second word The first letter of each word after the beginning is capitalized.
For example: myFirstName, myLastName, such variable names look like camel humps rising one after another, hence the name.
style.font-size will cause an error .
【Related recommendations:javascript video tutorial, web front-end】
The above is the detailed content of What is camel case naming in javascript. For more information, please follow other related articles on the PHP Chinese website!