JavaScript – console.error() Method
The console.error() method writes an error message to the console, which can be useful for testing purposes.
The console.error() method writes an error message to the console, which can be useful for testing purposes.
The console.group() method starts a message group, and all new messages will be written inside this group.
The console.groupCollapsed() method starts a collapsed message group (which can be expanded), and all new messages will be inside this group.
The console.groupEnd() method ends a console message group created with the console.group() method.
The console.info() method writes a message to the browser console.
The console.log() method logs a message to the browser console, which is useful for testing purposes.
The console.trace() method displays a trace that shows how the code ended up at a certain point.
The console.time() method starts a timer in the console to time code for testing purposes.
The Date constructor property returns the function that created the Date prototype.
The Date getDate() method returns the day of the month (1 to 31) of a Date object.
The Date getDay() method returns the day of the week (0 to 6) of a Date object: Sunday = 0, Monday = 1, Tuesday = 2 … Saturday = 6.
The console.timeEnd() method ends a timer in the console that was started with the console.time() method.
The Date getHours() method returns the hour (0 to 23) of a Date object: 12am = 0, 1am = 1, 2am = 2 … 11pm = 23.
The Date getMilliseconds() method returns the milliseconds (0 to 999) of a Date object.
The Date getFullYear() method returns the full year (4 digits) of a Date object.
The Date getMinutes() method returns the minutes (0 to 59) of a Date object.
The Date getMonth() method returns the month (0 to 11) of a Date object: January = 0, February = 1, March = 2 … December = 11.
The Date getSeconds() method returns the seconds (0 to 59) of a Date object.