Skip to content

Instantly share code, notes, and snippets.

@Harshakvarma
Last active October 18, 2021 18:37
Show Gist options
  • Save Harshakvarma/7df3a0415789b6512481fca572d7dfa9 to your computer and use it in GitHub Desktop.
Save Harshakvarma/7df3a0415789b6512481fca572d7dfa9 to your computer and use it in GitHub Desktop.
Case Styles: Camel, Pascal, Snake, and Kebab Case
var userLoginDetails = {userId: '53453455'} // function names (Camel Case)
var UserLoginDetails = {userId: '53453455'} // Class names (Pascal Case)
var user_login_details = {userId: '53453455'} // local constants (Snake Case)
var USER_LOGIN_DETAILS = {userId: '53453455'} // shared constants (All Caps Snake Case)
var value = 'user-login-details' // value (Kebab Case)
/*
REF: https://betterprogramming.pub/string-case-styles-camel-pascal-snake-and-kebab-case-981407998841
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment