Snake Case VS Camel Case VS Pascal Case Vs Kebab Case

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


posted @ 2023-07-13 11:51  svolcano  阅读(24)  评论(0编辑  收藏  举报