← Code LabTypeScript0/50 solved · 0%
Objects · easy

5. Interfaces

Shape of an object.

Define an interface `User` with `id` (number) and `name` (string). Write `formatUser(user)` returning 'Name (ID)'.
Required in your answer: interface Useruser: User