JavaScript Buil1
JavaScript Buil1
The Number object contains only the default methods that are part of every object's definition.
Method
constructor()
toExponential()
toFixed()
toLocaleString()
toPrecision()
toString()
valueOf()
Description
Returns the function that created this object's instance. By default this is the
Number object.
Forces a number to display in exponential notation, even if the number is in the
range in which JavaScript normally uses standard notation.
Formats a number with a specific number of digits to the right of the decimal.
Returns a string value version of the current number in a format that may vary
according to a browser's locale settings.
Defines how many total digits (including digits to the left and right of the
decimal) to display of a number.
Returns the string representation of the number's value.
Returns the number's value.
Boolean Methods
Here is a list of each method and its description.
Method
toSource()
toString()
valueOf()
Description
Returns a string containing the source of the Boolean object; you can use this
string to create an equivalent object.
Returns a string of either "true" or "false" depending upon the value of the
object.
Returns the primitive value of the Boolean object.
String Methods
Here is a list of each method and its description.
Method
Description
charAt()
charCodeAt()
Returns a number indicating the Unicode value of the character at the given
index.
concat()
indexOf()
Returns the index within the calling String object of the first occurrence of the
specified value, or -1 if not found.
lastIndexOf()
Returns the index within the calling String object of the last occurrence of the
specified value, or -1 if not found.
localeCompare()
length()
match()
replace()
Executes the search for a match between a regular expression and a specified
string.
slice()
split()
Splits a String object into an array of strings by separating the string into
substrings.
substr()
substring()
Returns the characters in a string between two indexes into the string.
toLocaleLowerCase() The characters within a string are converted to lower case while respecting
the current locale.
toLocaleUpperCase() The characters within a string are converted to upper case while respecting
the current locale.
toLowerCase()
toString()
toUpperCase()
valueOf()
Description
anchor()
big()
blink()
bold()
fixed()
fontcolor()
fontsize()
italics()
link()
small()
strike()
sub()
sup()
Array Methods
Here is a list of each method and its description.
Method
Description
concat()
Returns a new array comprised of this array joined with other array(s) and/or
value(s).
every()
Returns true if every element in this array satisfies the provided testing
function.
filter()
Creates a new array with all of the elements of this array for which the provided
filtering function returns true.
forEach()
indexOf()
Returns the first (least) index of an element within the array equal to the
specified value, or -1 if none is found.
join()
lastIndexOf()
Returns the last (greatest) index of an element within the array equal to the
specified value, or -1 if none is found.
map()
Creates a new array with the results of calling a provided function on every
element in this array.
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 new length
of the array.
reduce()
Apply a function simultaneously against two values of the array (from left-toright) as to reduce it to a single value.
reduceRight()
Apply a function simultaneously against two values of the array (from right-toleft) as to reduce it to a single value.
reverse()
Reverses the order of the elements of an array -- the first becomes the last,
and the last becomes the first.
shift()
Removes the first element from an array and returns that element.
slice()
some()
Returns true if at least one element in this array satisfies the provided testing
function.
toSource()
sort()
splice()
toString()
unshift()
Adds one or more elements to the front of an array and returns the new length
of the array.
Date Methods:
Here is a list of each method and its description.
Method
Description
Date()
getDate()
Returns the day of the month for the specified date according to local
time.
getDay()
Returns the day of the week for the specified date according to local
time.
getFullYear()
getHours()
getMilliseconds()
getMinutes()
getMonth()
getSeconds()
getTime()
getTimezoneOffset()
getUTCDate()
Returns the day (date) of the month in the specified date according
to universal time.
getUTCDay()
getUTCFullYear()
getUTCHours()
getUTCMilliseconds()
getUTCMinutes()
getUTCMonth()
getUTCSeconds()
getYear()
setDate()
Sets the day of the month for a specified date according to local time.
setFullYear()
Sets the full year for a specified date according to local time.
setHours()
setMilliseconds()
setMinutes()
setMonth()
setSeconds()
setTime()
setUTCDate()
Sets the day of the month for a specified date according to universal
time.
setUTCFullYear()
Sets the full year for a specified date according to universal time.
setUTCHours()
setUTCMilliseconds()
setUTCMinutes()
setUTCMonth()
setUTCSeconds()
setYear()
toDateString()
toGMTString()
toLocaleDateString()
Returns the "date" portion of the Date as a string, using the current
locale's conventions.
toLocaleFormat()
toLocaleString()
toLocaleTimeString()
Returns the "time" portion of the Date as a string, using the current
locale's conventions.
toSource()
toString()
toTimeString()
toUTCString()
valueOf()
Description
Date.parse( )
Date.UTC( )
Math Methods
Here is a list of each method and its description.
Method
Description
abs()
acos()
asin()
atan()
atan2()
ceil()
cos()
exp()
Returns EN, where N is the argument, and E is Euler's constant, the base of the
natural logarithm.
floor()
log()
max()
min()
pow()
random()
round()
sin()
sqrt()
tan()
toSource()
RegExp Methods:
Here is a list of each method and its description.
Method
Description
exec()
test()
toSource()
Returns an object literal representing the specified object; you can use this
value to create a new object.
toString()