Skip to main content

Functions

  • Use lowerCamelCase for function with meaningful Names. Use consistent verbs for concept. Function will usually create, read, update or delete something.

    // Dofunction getUsers(firstName, lastName) {  return `${firstName} ${lastName}`;}
    // Avoidfunction name(firstName, lastName) {  return `${firstName} ${lastName}`;}