Too many logs, right.... So...
You can override the console.log function to add your own custom behavior. For example, you can swollow all logs
and save only the last one.
Now check the value of lastLog in the console. You should see the last log message. You can do it
again and agian to see the last log
message.