What value is printed when executing the following code?
let text = '';
const words = ['hello', 'world'];
words.forEach(word => {
text += word.charAt(0);
});
console.log(text);
What value is printed when executing the following code?
let text = '';
const words = ['hello', 'world'];
words.forEach(word => {
text += word.charAt(0);
});
console.log(text);