Skip to content
Primitives & Objects

Strongly-type a user profile

Create a typed User object with required id/name and optional email/avatar. Demonstrate safe access and mutation with readonly fields where appropriate.

Solution

Loading...
Run your code to see output and diagnostics.

Built by Antigravity. The source code is available on GitHub.