Add the new candy object to the end of the array. Return the updated inventory array with the new candy object added to the end. javascript code example
Example: js fucntion return array
function BlockID() {
var IDs = new Array();
images['s'] = "Images/Block_01.png";
images['g'] = "Images/Block_02.png";
images['C'] = "Images/Block_03.png";
images['d'] = "Images/Block_04.png";
return IDs;
}