inp.addEventListener('keyup',()=>{
for(let key in codes){
if(inp.value === key){
info.textContent = `${codes[key]}`;
info.style.display = 'block';
} else {
info.style.display = 'none';
}
};
});
inp.addEventListener('keyup',()=>{
if(inp.value in codes) {
info.textContent = `${codes[inp.value]}`;
info.style.display = 'block';
}
else {
info.style.display = 'none';
}
});