Good, I want to insert an image according to the amount of times in the property of an object. It's easier to explain with an example:
I have this object:
var book = [
{
title: "O Tatuador de Auschwitz",
stars: 4,
Author: "Heather Morris",
Validation: true
}
]
and in this case I want to insert an image 4 times (according to the Stars property). For this I have created a for
loop as follows:
for (var s = 0; s < book.stars ; s++) {
image(starj,s,100,20,20);
}
starj
is defined with the image that I want to insert
What am I doing wrong?
Thank you
P.S. I'm still a lot of blue whites in it.