Hello,
I start to learn JS.
**************************
var f1 = function () {
this.v1 = 5;
}
f1.prototype.get_v1 = function () { return this.v1; };
var f2 = new f1();
f1.v1 // return nothing
f1.get_v1() // nothing
f2.v1 // return 5
f2.get_v1() // return 5
**************************
Why f1.v1 and f1.get_v1 return nothing ?
I read documentations, try to understand, but I think that I need more
explanation.
Thank you.
Sam
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]