DEV Community

rodman864
rodman864

Posted on

Objects

What is an object? It is an entity within the browser or web that has properties that define it and methods that can be acted upon it.
What is a property? A defining characteristic of an object.
What is a method? An action that can be performed on an object.
Which are the different ways of referencing objects:
Tag name document.getElementByTagName(tag)
Class name document.getElementByClassName(class)
Name document.getElementByName(name)
ID document.getElementById(id)

Top comments (0)