With JavaScript objects, the goal is to separate the design and use of your objects. For example, when you use the writeln() method, the important thing is that the text gets printed to the screen, not how it gets printed to the screen.
When designing objects, it is often easier to concentrate on how you want to use the object, and not how you need to model the data. For example, if you were creating a technical Web site with many terms, you might want a 'reference' object that contained methods related to reference material. Instead of concentrating on the data, it is easier to concentrate on what you need to do with the object, such as:
reference.find("ASDL");
or
reference.items[36].show();
The methods presented above may or may not be how you would prefer to work with the reference object, which is why it is important to imagine using the object before implementing it in code.