I’m new to svelte, and I need to create an Array that I intend to use as an identifier to render different content one at a time on the screen.
I need to create a simple Array = [false, false, false, ...]
of some length L
that can dinamicly change.
I tried:
<code>let tasks = Array(numberOfTasks);
</code>
<code>let tasks = Array(numberOfTasks);
</code>
let tasks = Array(numberOfTasks);
but don’t know how to populate it with false
.
Thanks in advance.