Javascript delay/wait/sleep

awesome Patrick, thanks for the quick reply. I will look into this article that you sent. Below is the code I am using (at least one iteration of it - I have tried many different variations!)

var variant_ids = [17651552878682,17651554680922,17670906249306,17668986732634,17891973202010,{...break here just for brevity's sake...} ,17644602720346]; 
function func() {
PriceChange.trigger(
{
additionalScope:
{
variant_id : variant_id
}
}
)};
//var variantid = pricechange_variantid.value;
for (i = 0; i < variant_ids.length; i++)
{
var variant_id = variant_ids[i];
setTimeout(func(), 1000);
}