One pass, every item
Arrays and for loops are a perfect match. Let the counter i walk from 0 up to array.length, and use array[i] to grab each item in turn:
let nums = [10, 20, 30];
for (let i = 0; i < nums.length; i++) {
println(nums[i]);
}Why < nums.length?
Indexes run from 0 to length - 1. Using i < nums.length (not <=) stops exactly after the last real item.
A shape per item
Here each number in the array becomes the diameter of a circle. The loop draws one ellipse for every item, all the way down the canvas: