const taskArrays = ['code', 'Eat', 'code'];
console.log(taskArrays);
//["code", "Eat", "code"]Use when you need ordered list of values (might contains duplicates)
Use when you need to manipulate data
const taskSets = new Set(['code', 'Eat', 'code']);
console.log(taskSets);
//{"code", "Eat"}
Use when you need to work with unique values
Use when High-performance is really important
Use to remove duplicates from arrays