Sorry if i am not clear enough as i am new to javascript.
let me explain with an example.
for example if i have
*
(function()
var foo;
windows.foo = foo = (function()){
function foo (a,b){
this.colour = a.colour
this.shape = b.shape
}
return foo;
})();
}).call(this);*
Now my questions was
- regarding the scope, when the "foo" is global and local.
2.how would I display the value of foo in the HTML. I cannot use document.getElementbyid(); is there any other functions that i can use?????