Question: I am getting an undefined error after logging each element of the set.
please have a look at the code snippet bellow

```
  let arrayFruits = ['apple', 'banana', 'orange', 'plum', 'peach', 'strawberry', 'raspberry'];

const fruits = new Set(arrayFruits);

const itrate = fruits.forEach(fruit =>{
    console.log(fruit);

});

console.log(itrate);

```

Answer: 
forEach do not have any return value. Undefined is printed as part of iteration even if you remove console.log(fruit) from iteration you will still see undefined printed in console.
what you probably need

```
let arrayFruits = ['apple', 'banana', 'orange', 'plum', 'peach', 'strawberry', 'raspberry'];

const fruits = new Set(arrayFruits);

let itrate = []
fruits.forEach(fruit =>{
  itrate.push(fruit)
});

console.log(itrate);

```