What does instance, class, and reference mean in JavaScript?

351 viewsOther

I’m searching online but I’m too… dumb to understand.

😭 TIA.

In: Other

5 Answers

Anonymous 0 Comments

A class is a category of things, such as plastic red square, or greet metal circle.

An instance is an actual single plastic red square that you made. Just having the words “plastic red square” doesn’t mean you actually have one in hand, you have to make one.

A reference is when you give something you made a name, so you can have you program do things with it.
“Make a plastic red square and named it Steve.” “Now, call the ‘paint it black’ function on Steve.”

You are viewing 1 out of 5 answers, click here to view all answers.