JavaScript Method
Array Methods
Adds one or more elements to the end of an array. push(): Removes the last element from an array. pop(): Removes the first element from an array. shift(): Adds one or more elements to the beginning of an array. unshift(): Returns a shallow copy of a portion of an array. slice(): Changes the contents of an array by removing or replacing existing elements. splice(): Returns the first index at which a given element is found in the array. indexOf(): Calls a function for each element in the array. forEach(): Creates a new array with the results of calling a provided function on every element in the array. map(): Creates a new array with all elements that pass the test implemented by the provided function. filter(): Applies a function against an accumulator and each element in the array (from left to right) to reduce it to a single value. reduce():String Methods
Combines two or more strings. concat(): Returns the character at the specified index. charAt(): Returns the index within the calling string object of the first occurrence of the specified value. indexOf(): Returns the part of the string between the start and end indexes. substring(): Extracts a section of a string and returns it as a new string. slice(): Converts a string to uppercase. toUpperCase(): Converts a string to lowercase. toLowerCase(): Removes whitespace from both ends of a string. trim():Object Methods
Returns an array of a given object's own property names. Object.keys(): Returns an array of a given object's own enumerable property values. Object.values(): Returns an array of a given object's own enumerable property [key, value] pairs. Object.entries():Math Methods
Returns a pseudo-random number between 0 and 1. Math.random(): Rounds a number to the nearest integer. Math.round(): Rounds a number down to the nearest integer. Math.floor(): Rounds a number up to the nearest integer. Math.ceil(): Returns the absolute value of a number. Math.abs():Miscellaneous
Calls a function or evaluates an expression after a specified number of milliseconds. setTimeout(): Calls a function or evaluates an expression at specified intervals. setInterval(): Outputs a message to the console. console.log():Embed Javasript Docs
/ [pdf]