Using the Date function without the ‘new’ keyword will give you a string showing the current date and time. but it does not have all the features of a complete Date object. using it with the ‘new’ keyword. The Date object instance is created with all functionalities.
Discover more from Coursity
Subscribe to get the latest posts sent to your email.