跳到主要内容
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.