<script>
  const num = 2;
  $: squared = num * num;
</script>

<p>{squared}</p>
