Skip to content
Advertisement

how do I return the whole object without seeing [object Object]?

This code updates the object properties and their values but when I try to return the object, I get [object Object] on my screen. How do I Return the whole object?

JavaScript

JavaScript
JavaScript

Advertisement

Answer

You have to create a string at some point. JSON.stringify(records) is the closest you will get to printing the object.

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement