JavaScript – Array reverse() Method
The Array reverse() method reverses the order of the items in an array, overwriting the original array.
The Array reverse() method reverses the order of the items in an array, overwriting the original array.
The Array shift() method removes and returns the first element of an array, changing the original array.
The Array slice() method returns selected elements in an array as a new array, without changing the original array.
The Array some() method checks if any array elements pass a test by executing a callback function for each array element.
The Array sort() method sorts the elements of an array as strings in alphabetical and ascending order, overwriting the original array.
The Array splice() method adds and/or removes array elements, overwriting the original array.
The Array toString() method returns a string with array values separated by commas, and does not change 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.