Well it seems if I don't make a function preceed with the declaration and definition
Code:
this.functionName = functionName;
function functionName(){
}
Then I can't call that function later which relates to my thoughts on public and private. On the other hand it seems if a variable inside a function isn't given a
Code:
this.variableName = something;
but rather
Code:
variableName = something;
Then all the objects of the same type will share the same value of variableName....
does
make it unique or am I just using variables out of scope and dealing with undefined behavior as results?
Bookmarks