mardi 21 février 2017

Accessing an existing property of a "null" reference

enter image description here

Here I have an object made with JSON.parse. I am trying to go through my object and fetch the media of it. It's likes, comments ext.

This however makes no sense.

In the vars I can clearly see my mediaObject. Yet in the trace defines it as 0. I can clearly see the number of likes. Yet it declares mediaObj.likes = null.

Why is this?

Aucun commentaire:

Enregistrer un commentaire