var firstNameLength = 0; var firstName = "Ada"; firstNameLength = firstName.length;
I mean: it seems so arbitrary to first set firstNameLength to zero, it could be any number really…
Because later on firstNameLength is going to be set to a different number anyway!
Am I wrong/right?
What would be a more beautiful way to do this?
(probably something advanced but that’s okay).