0

What is meant by Instance in Js.objects

i haven't heard of this word until now plz help me understand this

31st Dec 2017, 10:41 AM
Abu Ubada
Abu Ubada - avatar
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.
31st Dec 2017, 11:45 PM
John Wells
John Wells - avatar