Problem occurred

During debugging, it was discovered that console.log in Chrome DevTools cannot be used as a reference object because of reference relationships. For example:

const arr = [1.2.3.4.5.6.7];
console.log(arr);
arr.pop();
console.log(arr)
Copy the code

Problem solving

Generally, if we need to print an object, we can print it with json.stringify, or use console.table: