DEV Community

rodman864
rodman864

Posted on

1

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)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →