typecast an input into string in javascript code example Example: javascript to string num.toString();