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 dynamically change.
I tried:
let tasks = Array(numberOfTasks);
but don't know how to populate it with false
.