Look at the following code:

var a = {}; console.log(a); setTimeout(() => {a.name="test"; }, 100);Copy the code

What do you think will print out? Is it an empty object? Wrong!!!

The correct answer is:

The original console.log printed object just shows a reference, and when we look at it, we will access its real value.