JavaScript – Array unshift() Method
The Array unshift() method adds new elements to the beginning of an array, overwriting the original array.
The Array unshift() method adds new elements to the beginning of an array, overwriting the original array.
The Array valueOf() method returns the value of the array (contents), and does not change the original array.
The Boolean constructor property returns the function that created the Boolean prototype.
The Boolean prototype property allows you to add new properties and methods to existing booleans.
The Boolean toString() method returns a string from the boolean.
The Boolean valueOf() method returns the primitive value of a boolean.
The Class constructor() method is for creating and initializing objects created within a class.
The Class extends keyword is used to create a child class of a parent class, which then inherits all the methods from the parent class.
The Class static keyword defines static methods for classes, which are then called directly on the class without creating an instance.
The Class super keyword is used to call the constructor of its parent class to access the parent’s properties and methods.
The console.assert() method writes a message to the console if an expression evaluates to false.
The console.clear() method clears the console, and depending on the browser, may write “Console was cleared” in the console.
The console.count() method counts the number of times console.count() is called and writes the number to the console.
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.