Standard Classes

JavaScript provides a number of classes and methods for use by programmers. A few of those items are described below:
String Class

The String class methods must be called from a string variable. In other words, var str="programming", must first be declared and the methods would be called from the str variable (str.toUpperCase()). Many string method operate on indicies, a numbered order of characters. The important thing to note is that strings start counting at 0. So, in str, the index of the character p is 0.

Date object

The Date class methods allow access to information about the date and time. They are accessed using Date.functionName. The Date object relies on internal clock, if set wrong, the wrong information will show.
Window Object

The window class controls the window that the content (document) appears in. We can open new windows and close others from within a document.
Document object

The document obect controls the content on the page. There are many properties that we can access, but the most common are:
Location object

The location object relates to current URL and page. WE can use the href property to either access OR set the page location.
History object

The History object contains information and methods relating to the page history. These controls can be useful for creating a book type setting or slide show.
Navigator object

The Navigator object returns information about the browser being used by the client. The methods and properties are called using navigator.function or property.