I am trying to do some chrome console coding to implement a calendar in javascript, but I am facing a very basic problem.
a = new Date(2017, 9, 9);
// Mon Oct 09 2017 00:00:00 GMT+0530 (IST)
b = new Date(2017, 9, 9);
// Mon Oct 09 2017 00:00:00 GMT+0530 (IST)
console.log(a == b);
But they are not equating:
a == b
false
It has to be some stupid mistake I am making but can't seem to find out, Any help please??