How to parse a value to string in javascript code example Example: javascript parse to string var bar = foo.toString();