Перейти к основному содержимому
0

Этот урок пока на английском.

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.