Tuple to Sentence
Easy · Arrays & Tuples
A person is stored as a tuple [name, age] of type [string, number].
Write describePerson(person: [string, number]): string that returns "<name> is <age> years old". Use "year" (singular) when the age is exactly 1. Tip: destructure the tuple with const [name, age] = person.
Next: Opposite Direction