VueJS Naming Convention > Variables Naming

camelCase

  • Begin with a lowercase e.g. id, name.
  • If multiple words: start it with the lowercase letter followed by an uppercase letter e.g. lastName, phoneNumber
  • Avoid using underscore or dash
  • Avoid one-character variables e.g. a, b
  • Cannot start with a number
let phoneNumber = '0011553368'

Contributors

sandoche