let chars = [1,4,6,1,6,8,9,9,6];
let uniqueChars = [...new Set(chars)]; // using sets

console.log(uniqueChars);

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: