About Text Cases
What is camelCase and when is it used? ▼
camelCase starts with a lowercase letter and capitalizes each subsequent word (e.g., myVariableName). It's widely used in JavaScript, Java, and Swift for variable names, function names, and object properties.
What is snake_case? ▼
snake_case uses all lowercase letters with underscores between words (e.g., my_variable_name). It's commonly used in Python, Ruby, and SQL for variable names, function names, and database column names.
What is kebab-case? ▼
kebab-case uses all lowercase letters with hyphens between words (e.g., my-variable-name). It's used in CSS class names, HTML attributes, URL slugs, and file names in web development.
What is PascalCase? ▼
PascalCase (also called UpperCamelCase) capitalizes the first letter of every word (e.g., MyClassName). It's used for class names in Java, C#, TypeScript, and React components.