QUESTION IMAGE
Question
which of these would be a good name for a variable that holds a persons first name?
firstname
n01
tomsmith
lastname
Brief Explanations
A good variable name should clearly represent its purpose. "firstName" directly indicates it holds a person's first - name. "N01" is a generic identifier with no semantic meaning related to first - name. "tomSmith" seems like a full name example rather than a general variable for first name. "lastName" is for the last name, not the first.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
A. firstName