Which data type should be used for a variable that will store the user’s year of birth?

(1 point)
Responses

string

string

float

float

object

object

integer

1 answer

The appropriate data type for storing a user's year of birth is integer.

Years are whole numbers and do not require decimal places, making the integer type the best choice.