I have a collection of strings that I want to add to an empty string variable using a forEach loop. My goal is to print out each value separately without joining them together. However, when I try to achieve this by printing the values in the filltext once, it seems like something is not working as expected. Any ideas on what might be going wrong?
ch_labels = ['l', 'r'];
let ch = '';
let _ch_text = this.ch_labels.forEach(function(value) {
console.log('channel names:', value);
ch = value;
});
this.canvas.fillText(ch, 0, 0, 0);
console.log('names', ch);