Separate pizza generation function from pizza append function by creating an array and using a forEach loop