In this case, similar to before, but let's say one group instead of 5 different ones: snowflake.
Inside 'snowflake', a circle, with its Class Name set to "circle." It is visible. Using
var circle = element.querySelector('.circle');
circle1.style.display = "none";
When the group is clicked the circle disappears. Great.
Inside the group are 3 different snowflakes that are not initially visible. I want to randomize which one appears when the circle disappears. I have:
var imageArray = ["snowflake1","snowflakes2","snowflakes3"];
var num = Math.floor(Math.random()* imageArray.length);
var snowflake = imageArray[num];
Assuming that's correct, I think my problem is converting that into a value that I can then use for the block command.