JavaScript Properties
JavaScript Properties
JavaScript Properties
Property Description
EPSILON The difference between 1 and the smallest
number > 1.
MAX_VALUE The largest number possible in JavaScript
MIN_VALUE The smallest number possible in JavaScript
MAX_SAFE_INTEGER The maximum safe integer (253 - 1)
MIN_SAFE_INTEGER The minimum safe integer -(253 - 1)
POSITIVE_INFINITY Infinity (returned on overflow)
NEGATIVE_INFINITY Negative infinity (returned on overflow)
NaN A "Not-a-Number" value
JavaScript Strings
A JavaScript string stores a series of characters like "Dani Liam".
But with JavaScript, methods and properties are also available to strings, because
JavaScript treats strings as objects when executing methods and properties.
JavaScript String Methods:
Method Description
copyWithin() Copies part of an array to another location in the same array and returns it.
filter() Creates a new array with all elements that pass the test in a testing function.
find() Returns the value of the first element in an array that pass the test in a testing function.
findIndex() Returns the index of the first element in an array that pass the test in a testing function.
indexOf() Search the array for an element and returns its first index.
keys() Returns a Array Iteration Object, containing the keys of the original array.
lastIndexOf() Search the array for an element, starting at the end, and returns its last index.
map() Creates a new array with the results of calling a function for each array element.
pop() Removes the last element from an array, and returns that element.
push() Adds one or more elements to the end of an array, and returns the array's new length.
shift() Removes the first element from an array, and returns that element.
some() Checks if any of the elements in an array passes the test in a testing function.
unshift() Adds new elements to the beginning of an array, and returns the array's new length.
values() Returns a Array Iteration Object, containing the values of the original array.
Method Description
JavaScript | Object Properties
Object properties are defined as a simple association between name and value. All
properties have a name and value is one of the attributes linked with the property, which
defines the access granted to the property. Properties refer to the collection of values
which are associated with the JavaScript object. This collection may not follow any
particular order. JavaScript provides the feature to add, delete and modify the
properties. Properties are denoted by name:values pairs.
objectName.property
objectName["property"]
objectName[expression]
Array Properties
Property Description
Array Methods
Method Description