pase into string javascript code example Example 1: javascript to string num.toString(); Example 2: javascript parse to string var bar = foo.toString();