write the string of an object to the variable javascript code example Example: convert object to string js String(yourobject); //r