0
What is meant by Instance in Js.objects
i haven't heard of this word until now plz help me understand this
1 Réponse
0
Since you have finished HTML, I'll use that as an example. When you reference your HTML from JavaScript with a getElementsByTagName("p") you get a list of instances of the paragraphs defined in your HTML source. The paragraphs all share a class definition so you can change them or see how they were defined. This source creates 3 instances of p.
<html><head><title>Example</title></head>
<body><p>first</p><p>second</p><p>third</p>
</body><html>
Basically, an instance is a single occurrence of a type.