Snake Case VS Camel Case VS Pascal Case Vs Kebab Case

发布时间 2023-07-13 11:58:21作者: svolcano
eg. 
number of donuts = 34

  • snake case:Snake case separates each word with an underscore character (_). When using snake case, all letters need to be lowercase(Upper case for Constant value or Global value).
    • number_of_donuts = 3
  • kebab case:  kebab case is that kebab case separates each word with a dash character(-)
    • number-of-donuts = 34
  • camel case: When using camel case, you start by making the first word lowercase. Then, you capitalize the first letter of each word that follows.  
    • numberOfDonuts = 34  
  • pascal case:  pascal case requires the first letter of the every words to  be capitalized
    • NumberOfDonuts = 34