In the app.js file in the controller code region make a function called subCategoryCallBack
The function should
Seperate the combined strings into their own string with a comma seperator with the split() function and save it to an array called seperateStringsArray
Have an array to push the product data objects into to send to the buildProductCard function
Loop through the allProductsArray and check if there's a match between the product's categories and the seperateStrings array
If there's a match push the product data objects into the array that gets sent to the buildProductCard function
In the app.js file in the controller code region make a function called subCategoryCallBack
The function should
Seperate the combined strings into their own string with a comma seperator with the split() function and save it to an array called seperateStringsArray
Have an array to push the product data objects into to send to the buildProductCard function
Loop through the allProductsArray and check if there's a match between the product's categories and the seperateStrings array
If there's a match push the product data objects into the array that gets sent to the buildProductCard function
Send the array to the buildProductCard function