Curriculum Foundations Functions & multi-return exercise 5 · fill-word
Functions & multi-return
Exercise 1 covered the function-signature shape by recognition. Now produce it: fill in the keyword and the return type.
TypeScript reference
Fill the blanks →
About this theme
Functions look familiar — func name(args) returnType { ... } — with one big new idea: multiple return values. Go functions can return a tuple, and the convention for "this might fail" is to return (result, error). We'll meet error properly in a later module, but the *shape* arrives here.