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

15th Apr 2017, 5:43 PM
jinta yenwi
jinta yenwi - avatar
1 Resposta
+ 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))
15th Apr 2017, 6:14 PM
Burey
Burey - avatar