S
S
Sergey Suntsev2017-10-24 13:32:39
JavaScript
Sergey Suntsev, 2017-10-24 13:32:39

Why does chrome output paradoxical data in the console?

I somehow output json to the console, I think I’ll look where the name parameter disappeared, but it seems to be here, and besides, it’s not there .... WHATOOOO!?
59ef164d17879467918040.jpeg
actually, when the json is opened, the name parameter is null, but when it is hidden, it is. Or I don’t understand something in this world, or maybe someone had the same problem, and maybe figured out why the data can be output like this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danakt Frost, 2017-10-24
@GreyCrew

This means that your object is mutated after you have displayed it for the first time, but before you have expanded it in the console. When you expand an object in the console, you get it again by reference, and it may already be different from what you output to the console before. Look in the code for the place where you change the "name" property.
59ef191d9a45a686247848.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question