I am having trouble understanding the purpose of "return statements" as shown in this tutorial

The JavaScript Diaries: Part 4

can anyone simplify it [if possible] for me please?