Understanding return type annotations helps readers (and the compiler) know exactly what a function produces. Here, you’ll write a tiny function that returns the length of a username. You’ll annotate the parameter as a string and the return type as a number.
Annotating return types is especially helpful in foundational functions, library APIs, and when inference might be ambiguous.