convert variable value to string javascript code example Example: javascript to string num.toString();