Type Here to Get Search Results !

What is camelCase?

In Programming, we use these technic to increase readability of code. Like "thisismyworld" is difficult to read than thisIsMyWord. So here the role of Camel cases comes.

Camel Case 


Brief

In this the first letter is lowercase and each subsequent concatenated word is capitalized.

For example:
backColor
timeUtc
firstName
computerRamSize


History

CamelCase (camel case or camel-case)—originally known as medial capitals—is the practice of writing compound words or phrases in which the elements are joined without spaces, with each element's initial letter capitalized within the compound, and the first letter is either upper or lower case—as in "LaBelle", BackColor, "McDonald's", or "iPod". The name comes from the uppercase "bumps" in the middle of the compound word, suggestive of the humps of a camel. The practice is known by many other names. In computer programming if the first letter is capitalized, it is called Pascal case; if not, then camel case.



Use in Code

var firstName = "John";
var lastName = "Doe";

var price = 19.90;
var tax = 0.20;

fullPrice = price + (price * tax);
Tags

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

Top Post Ad

bogger post ad 1

Below Post Ad

bogger post ad 2

ezoic

Ads Section