What will be the output of the following code?
const names = ['Alice', 'Bob', 'Charlie'];
names.forEach(name => {
if (name.length > 4) {
console.log(name);
}
});
What will be the output of the following code?
const names = ['Alice', 'Bob', 'Charlie'];
names.forEach(name => {
if (name.length > 4) {
console.log(name);
}
});