Exercise: Timestamped Logs

Practice how to create a proxy for the logging function to prepend the current timestamp to the message.

Problem statement

Create a proxy for the console object that enhances every logging function (log(), error(), debug(), and info()) by prepending ...

Get hands-on with 1400+ tech skills courses.