Disclaimer: This is a personal learning exercise, but this is NOT related to any schoolwork; I'm not even currently enrolled in a programming class of any language. I'm merely hoping to learn Javascript more thoroughly for personal growth.
I'm trying to write a page, using an existing one as a framework. I'm trying to understand existing code so I can adapt
Relevant Existing Code:
function = Page()
{
this.items = new Array(20);
this.itemsIndex = 0;
}
Question: I understand the first and third lines (function and new Array(20)), but I am not familiar with the syntax and purpose of "this.itemsIndex = 0". A Google search has failed me thus far, and meager learning resources (books and online tutorials) have never touched this syntax that I'm aware of.
Can anybody help me find an existing resource that explains this to somebody new (but not wholly unfamiliar) with OOP? Barring that, could somebody explain it here?