function Container(param) {
this.member = param;
var secret = 3;
var that = this;
}
How many private members are in the Class?
@mladda21 You are right, but three private variables are: "param" (constructor parameter), "secret" and "that".
2017 Dec 4, 6:39:19 PM
I don't agree with this answer. All variables, which are recorded in "this" are public variables.
2017 Dec 4, 10:28:49 AM
Login in to like
Login in to comment