Deviopath › TypeScript

Format a User

Easy · Interfaces

Define an interface User with firstName: string, lastName: string and age: number.

Then write formatUser(user: User): string that returns the full name followed by the age in parentheses.

Next: Manhattan Distance