After receiving two string values through a callback function, let's call them a and b, I attempt to store them in an array. However, when I check the array using console.log, it only displays the values if I expand the array by clicking on the arrow symbol. Additionally, when I try to access the values by index, it shows up as undefined. It seems like there might be an issue with the function call?
funcOuter() {
let newList =[];
this.calledFunc(function (param) {
newList.push(param);
});
console.log(newList[1]);
}
Current Output:
undefined
Expected Output:
123.234.556