Inline Javascript – Use both single quote and double quote string?

<a href=”javascript:void(0);” onclick=”alert(‘I\’m Huy (\x22huypv.net\x22)’)”>Alert</a>

Explain:
\x22 ~ double quote character ”
Hexa: 22 -> Decimal: 2*16+2 = 34 = char code of double quote