I am having this array of string:
color = ['red','blue','purple'];
I want to print a message that says:
color in ('red','blue','purple')
If I write this:
color.forEach((c) => {
console.log(`color in ('${c}')`);
});
I am getting this message:
color in ('red') color in ('blue') color in ('purple')
How can I get the first message?