Date Object is giving me some strange results

I am trying to simply log a new date as such:

console.log(new Date());

However instead of getting a result like:

Mon Jun 25 2018 19:18:30 GMT-0700 (Pacific Daylight Time)

I am getting this:


Any reason why? Thanks for the help.

Do not add new in front of Date(). Adding new in front creates a Date object and the console.log attempts to print it.

1 Like