Dictionary entry
camel case
Last updated
Meanings
noununcountablecomputing
A way of writing several words joined together with no spaces, where each word after the first begins with a capital letter.
Grammar: Used without 'a' or 'the' when talking about the style in general: written in camel case.
Patterns
- in camel case
- write something in camel case
- use camel case
The variable name userName is written in camel case.
Web developers often use camel case for JavaScript functions like getElementById.
In camel case, the first letter of the whole name is usually lowercase.
nouncountablecomputing
A specific word or name written in this joined-up style, with capitals marking the start of each part.
Grammar: Can be countable when referring to one particular instance: a camel case like 'iPhone'.
Patterns
- a camel case
- camel case names
The brand name 'YouTube' is a well-known camel case.
When you create a new file, choose a camel case for the filename.
Common combinations
- in camel case
- Please write all class names in camel case.
- camel case notation
- The style guide recommends camel case notation for methods.
- convert to camel case
- The tool can convert your text to camel case automatically.
- camel case variable
- Name the camel case variable starting with a lowercase letter.
Synonyms and how they differ
- mixed case
- A broader term for any text that mixes upper- and lowercase letters, not necessarily joined words.
- Pascal case
- Similar, but every word including the first starts with a capital, as in 'PowerPoint'.
Opposites
Commonly confused: camel case or snake case? camel case or title case?
camel case vs snake case
Snake case joins words with underscores, like 'user_name', while camel case uses capitals and no separators.
camel case vs title case
Title case capitalizes each word but keeps spaces, as in 'The Lord of the Rings'.
Practice
Which of these identifiers is written in camel case?
Choose one answer.
Camel case joins words without spaces or punctuation and uses capitals to show word boundaries, as in 'UserName'. 'user_name' uses underscores (snake case), 'user-name' uses hyphens (kebab case), and 'user name' has a space.
Make it your own
Write a sentence using “camel case”, then check it and compare it with the examples above.