Naming signals

  • is/has/can/should prefix → boolean
  • Abbreviations: cfg (config), req (request), res (response), ctx (context), err (error)
  • _name (leading underscore) → private convention or older style
  • SCREAMING_SNAKE → constant that never changes
  • handle + Event → event handler function
  • i, j, n in short loops → acceptable short names

Question 0 of 5

What does the variable name isAuthenticated tell you about its type and meaning?