does to string work on objects in javascript code example Example: javascript object tostring var obj = { name: 'myObj' }; JSON.stringify(obj);