I need a variable from within a class to be accessable from outside the class AND within other functions that are inside the class.
function test ( ) {
this.name = name;
this.div = createElement ( "div" );
body.appendChild ( this.div );
function name ( ) {
alert (...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.