string = 'acj34298a'
console.log(string.length, new Set([...string]).size)
// 9 8
function f9() {
let inp9 = document.querySelector('.i-9').value;
let out9 = '';
for (let key in a9) {
if (inp9 == a9[key]) {
out9 += key + ' ';
}
}
document.querySelector('.out-9').innerHTML = out9;
}
document.querySelector('.b-9').onclick = f9;