Javascript Escape (\x) + Variable,
<p>Been playing with Javascript and discover the escaped(\x) which seems interesting.</p>

<p>To clarify I just discover I can convert two digit number into a letter using escape + x, </p>

<p>like <code>"\x51"</code> output is <code>Q</code></p>

<p>Been searching about this specific topic but not really sure where to start as I don't even know what they call it, like I know backslash purpose in PHP and Javascript but I don't know what it does when it combines with <code>x</code></p>

<p>Now my question is, is it possible to add a dynamic number value after the X? </p>

<p>Like I'm trying to create a function like this but It doesn't seem possible, as it looks like it requires to have two characters (number or letter) after <code>x</code>.</p>

<pre><code>function __num_string( num ) {
    return "\x"+num;
}
</code></pre>

<p><strong>expectation</strong> <code>__num_string( 51 )</code> would return <code>Q</code></p>

<p><strong>reality</strong> <code>Uncaught SyntaxError: Unexpected token ILLEGAL</code></p>

<p>I would appreciate any clarification if its possible or not,</p>

<p>Thanks</p>