We're not limited to declaring reactive *values* — we can also run arbitrary *statements* reactively. For example, we can log the value of `count` whenever it changes:
We're not limited to declaring reactive *values* — we can also run arbitrary *statements* reactively. For example, we can log the value of `count` whenever it changes:
```js
```js
$: console.log(`the count is ${count}`);
$: console.log('the count is ' + count);
```
```
> This example uses [a template literal](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals "MDN Web Docs").
You can easily group statements together with a block:
You can easily group statements together with a block: