ANB Systems interview question

Some questions were: how do you remove duplicates in an array and what is the difference between let and const in JavaScript