addArray() method - Wuntenn/acme-shopping-basket GitHub Wiki
addArray() method
This is a convenience method that allows you to enter the product codes in comma separated format:
basket.addArray('SR1', 'FR1', 'FOO');
alternatively an array of product codes can be supplied to this function like:
basket.addArray(['SR1', 'FR1', 'FOO']);
Errors
'Need to add an array of product codes or a comma separated list of product codes'
This means that the products haven't been specified as above. Please check above to correct the way that you specify the products.