var num = 123; //Number; alert( typeof 123 + ''); alert( typeof String(123) ); alert( typeof 123.toString() );