Learn JavaScript practically
and Get Certified.
Reference Materials
Created with over a decade of experience.
Certification Courses
Created with over a decade of experience and thousands of feedback.
Learn JavaScript practically
and Get Certified.
Try Programiz PRO!
Learn JavaScript practically
and Get Certified.
JavaScript Math Object
Returns the sine of an angle
Returns the cosine of an angle
Returns the tangent of an angle
Returns the absolute value of a number
Returns a number raised to a certain power
Returns the arcsine of a number in radians
Returns the arccosine of a number in radians
Returns the arctangent of a number in radians
Rounds a number up to the next largest integer
Rounds down a number to the next smallest integer
Returns the number rounded to the nearest integer
Returns the integer part of a number
Returns the number with the highest value
Returns the number with the lowest value
Returns the square root of a specified number
Returns the sign of a number
Returns the natural logarithm of a number
Returns the base 2 logarithm of a number
Returns the base 10 logarithm of a number
Returns the natural logarithm of 1 plus number
Returns e (Euler's number) raised to given power
Returns e raised to given power minus 1
Returns the hyperbolic sine of a number
Returns the hyperbolic cosine of a number
Returns the hyperbolic tangent of a number
Returns the hyperbolic arcsine of a number
Returns the hyperbolic arc-cosine of a number
Returns the hyperbolic arctangent of a number
Returns arctangent of the quotient of arguments
Returns the 32-bit float representation of number
Returns sqrt of the sum of squares of arguments
Returns the cube root of a specified number
Returns num of leading zeros in binary of a number
Returns pseudo-random float number between 0 and 1
JavaScript String Methods
Returns the number of characters in a string
replace a substring/pattern in the string
Returns the first index of occurrence of a value
Returns the last index of occurrence of a value
Checks if a string begins with a specified string
Checks if a string ends with a specified string
Returns uppercase of a string
Returns lowercase representation of a string
Checks if given string is found inside a string
Returns a string by repeating it given times
Returns character at a specified index in string
Returns Unicode of the character at given index
Returns a string from the given UTF-16 code units
Returns a specified part of the string
Pads a string at the start to a given length
Pads a string at the end to a given length
Returns the Unicode point value at given index
Returns a string using the given code points
Returns result of matching string with a regex
Returns iterator of results matching with a regex
Compares two strings in the current locale
Searches for specified value in the string
Returns string by replacing all matching patterns
Concatenates the arguments to the calling string
Returns the string divided into list of substring
Removes whitespace from both ends of a string
Extracts and returns a section of the string
JavaScript Array Methods
Returns the number of elements in an array
Returns the array in reverse order
Sorts the elements of an array in specific order
Returns array by filling elements with given value
Concatenates the array elements to a string
Returns the string representation of an array
Removes and returns the last array element
Removes and returns the first array element
Adds elements to end of array & returns its length
Adds elements to start of array and returns length
Returns array by merging given value and/or arrays
Returns an array by changing its elements in place
Returns the last index of occurrence of an element
Returns the first index of occurrence of element
Creates a new Array instance from given arguments
Returns a shallow copy of a portion of an array
Returns index of element that satisfies condition
Returns first element that satisfies a condition
Checks if a value exists in an array
Reduces array to single value from right to left
Reduces array to single value from left to right
Checks if the given value is a JavaScript Array
Returns array by filtering elements on given test
Returns array by mapping elements using given func
Executes the given function on array elements
Tests if any element passes given test function
Tests if all elements pass the given test function
Returns iterator containing key/value pair array
Returns an iterator containing keys of array items
Returns iterator containing values of array items
Creates a new Array from array-like object
Returns the constructor function for the array
Copies and overwrites elements within the array
Returns string representing the elements of array
Flattens the nested array to given depth
Returns new array by mapping and flattening array
JavaScript Object
Returns the string representation of Object
Returns array of object's enumerable property name
Return array of object's enumerable property value
Returns array of object's enumerable properties
Returns a string representing the object
Returns the primitive value of specified object
Seals the given object
Determines if an object is sealed
Sets prototype of object to another object or null
Check if object exists in other objects prototype
Checks if the specified property is enumerable
Returns the prototype of the given object
Creates new object from given object as prototype
Copies all enumerable own properties to an object
Defines properties on an object and returns object
Defines property directly on object and return it
Checks if two values are the same value
Freezes and returns an object
Determines if an object is frozen
Checks if object has a given property as its own
Prevents new properties from being added to object
Determines if an object is extensible
Transforms list of key-value pairs into an object
Returns property descriptor of own property of obj
Returns all own property descriptors of an object
Returns array of all properties found in an object
Returns array of all symbol properties in object
JavaScript Built-In Methods
Checks if the passed value is a finite number
Checks if a value is NaN or not
Parses string and returns integer of given radix
Parses argument and returns floating-point number
JavaScript Function
Returns source code of function as a string
Returns the number of parameters of a function
Returns the name of the given function
calls function with this value and array of args
Calls a function with a given this value and args
Creates new function with given this value & args