String is a group of characters which contains word(s). Sentence is group of strings or words In programming languages, there are different types strings cases styles available
There are various case styles for combing words to declare a variables or functions or URL in programming languages, This will be used as conventional notations only. All programming languages not follow all cases.
For example, Camel Cases in java are used for declaring variable names,kebab case are used in lisp language for define variable names.
We are going to discuss about different case strings.
Following are different cases name styles notations available in various programming language.
hyphen , dash or caterpillar or lisp or css case
FULL CAPS CASE or Train case
camel case also abbreviated as camelCase or camel caps
valid camel cases examples are ZipCode, lastName.
Invalid examples are zip code, full_name, phone-number.
These are compound words, each word is separated by underscore symbols
hello_world is a snake case string example.
Important points about snake case sentences
valid snake case examples are first_name and last_name,Full_name
invalid snake case examples are “first name”, “employee,salary”
Also called hyphen case or dash case, which is used to join the string of words with hyphen symbols, where all the words are in lower case.
valid names are naming-style-case-example
Invalid names are first_name