Main Menu StringsArrays
     01234567890123456789
MethodDescription
concat(str2,...)Joins two or more arrays, and returns a copy of the joined arrays
join([separator])Joins all elements of an array into a string
split(separator)convert string to array
pop()Removes the last element of an array, and returns that element
push(a,b,...)Adds new elements to the end of an array, and returns the new length
reverse()Reverses the order of the elements in an array
unshift(a,b,...)Adds new elements to the beginning of an array, and returns the new length
shift()Removes the first element of an array, and returns that element
slice(start, [end])Selects a part of an array, and returns the new array
sort(function(a,b)
{return a-b})
Sorts the elements of an array
splice(index,howmany,
item1,...)
Removes/Adds elements from an array
toString()Converts an array to a string, and returns the result
t=s.match(/h../); v=t[0].length;
r=s.search(/h../) NOT r=s.search(t[0]) ;
u=s.slice(0,r)+"|"+s.slice(r,r+v)+"|"+s.slice(r+v)
u=s.replace(/h../,"|$&|") where:
$&=match string, $1=(match group), $`=pre-string $'=post-string
try {eval(s)} catch (err) {alert("error")}

Input: (drag function from list to input area)
Output: