Ir para o conteúdo principal
0

Por enquanto, esta lição está em inglês.

Decide, then reuse

A profile page decides which badge to show, and the same bonus rule appears on three different pages. Conditions make the decisions; functions let you write a rule once and reuse it everywhere.