0
[object Object ] what's mean on javascript
i created array that show [object Object ] so i would like to know what does it mean
1 Odpowiedź
+ 6
it is simply an object
if you want to display what's inside the object with ease, try wrapping it with JSON.stringify
example
arr = [{ id:1, val:42}, { id:2, val:24}]
alert(JSON.stringify(arr))