createUniqueId.counter = 1;
createUniqueId.prototype.cntr = 99;

function createUniqueId(){
        this.cccc = 1000;
        alert(" createUniqueId.cntr "+createUniqueId.cntr);
        return createUniqueId.counter++;
}

function fn05(){
        var f = new createUniqueId();
        alert(" f.counter "+f.counter);
        alert(" f.cccc "+f.cccc);
        alert(" f.cntr "+f.cntr);
}

what does my first line of code is,
whether "counter" is a part of function "createUniqueId" ?

if yes, than why f.counter gives me undifined ?

-- 
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]

Reply via email to