Js print console.log display question

ask why the js console prints the result of console.log. If you don"t drop down the console.log, you can see 2018-12-28. After the drop-down, it becomes empty.

    var today = new Date();
    var date =
      today.getFullYear() +
      "-" +
      (today.getMonth() + 1) +
      "-" +
      today.getDate() +
      " 00:00";
      this.activity.start_at  = date;
      console.log(this.activity);
      

clipboard.png

Mar.19,2022

the value still exists when printing, and then it is changed (usually the reference is not eliminated and modified)

Menu