In this case the objects are windows, buttons, documents, images, and so on.
Some methods work with any object, and some are specific to one object.
With a little instruction in the names of objects, and the properties that modify them, you can start writing basic scripts. Complicated strings of scripts are called functions. The beauty of JavaScript lies in the simple naming convention and the relative ease with which you can learn to understand and write scripts. JavaScript is parsed sequentially. This means that your machine will read the JavaScript like a sentence, following its instructions line by line, until the commands have been completed.