Value was evaluated just now with console.log on JavaScript object

Examining objects via console.log happens in an asynchronous manner.

The reference to the object is passed synchronously to console but it doesn’t display the properties till its expanded . If the object has been modified before examining it in the console, the data shown will have the updated values. Chrome console shows a little i in a box which which says value below was evaluated just now

In order to print the object completely in console, you can stringify and log it like

console.log(JSON.stringify(obj));

Leave a Comment

tech