Arrays:You can define arrays using the array literal as follows
An array has a length property that is useful for iteration:
An anonymous function can be defined in similar way as a normal function but it would not have any name.
An anonymous function can be assigned to a variable or passed to a method as shown below: jQuery makes use of anonymous functions very frequently as follows:
Local Variables:A local variable will be visible only within a function where it is defined. Function parameters are always local to that function.
|charAt()||Returns the character at the specified index.|
|concat()||Combines the text of two strings and returns a new string.|
|forEach()||Calls a function for each element in the array.|
|IndexOf()||Returns the index within the calling string object of the first occurrence of the specified value, or -1 if not found.|
|length()||Returns the length of the string.|
|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.|
|reverse()||Reverses the order of the elements of an array, the first becomes the last, and the last becomes the first.|
|sort()||Sorts the elements of an array|
|substr()||Returns the characters in a string beginning at the specified location through the specified number of characters.|
|toLowerCase()||Returns the calling string value converted to lower case.|
|tostring()||Returns the string representation of the number's value.|
|toUpperCase()||Returns the calling string value converted to uppercase.|
Comments/Suggestions are invited. Happy coding......!