I have the following:
function showUnicode() { var text = prompt( \'Enter the wanted text\', \'Unicode\' ), unicode = 0, ntext, temp,
You should initialize the unicode variable to something, or you're adding the char codes to undefined.
unicode
undefined