I have a database table and I want to retrieve data.I created a java script function to show that data using an alert.
but it seems as [object] for all the dta.
this is how I use the alert.
The toString() method on an object will just yield "[object]". If you want to just print out all the properties for debug purposes, you can flatten the object to JSON with JSON.stringify(). Otherwise, you need to address the properties individually.