I am trying to alert a returned value from a function and I get this in the alert:
[object Object]
Here is the JavaScript code:
I think the best way out is by using JSON.stringify() and passing your data as param:
JSON.stringify()
alert(JSON.stringify(whichIsVisible()));