Curriculum Types & methods Structs exercise 4 · fill-word
Structs
Type the field-access expression. Same . operator as
TypeScript — no special syntax, no [] indexing, no get. The
blank is the whole varname.fieldname expression.
TypeScript reference
Fill the blanks →
About this theme
type Foo struct { ... }. A struct is a typed record — fields and their types, nothing else. No methods on the struct itself (those come next). Field access with .. Struct literals can be positional or named; named is the only sane choice for anything with more than two fields.