I'm making a tool that converts unicode value to character with text input and javascript.
Here's what I've done so far, I am quite new to Javascript so I suppose the code looks quite odd:
setInterval(
function tochar() {
const hex = +document.getElementById('hex').value;
const char = hex.toString();
document.getElementById("char").value = char;
});
unicode <input type="text" id="hex" value="\uac00"/>
➜char <input type="text" id="char"/>
I want to make the right input
to render '가', which is the character value for \uac00
. What edits should I make? I have already refered to a lot of questions and answers on StackOverflow and other sources, but could not find something helpful for my purpose.