block
Code between { and }, whose last expression is its value.
A block { ... } runs its statements and evaluates to its final expression, or () if there is none.
Examples
With
priceequal to 40,let total = { let tax = price / 10; price + tax };setstotalto 44.
See also