<script> </script> {#each things as thing, index} {@debug index} {thing} {/each}