A constraint is the return value of a JavaScript expression and you can write constraints that get evaluated continuously or only once. A state is a conditional constraint. This chapter taught you how to use constraints and states.