Here's a sample code of the situation that I'm stuck in:
<script>
var mod = (function(){
var inn1;
function innfunc(){
}
}()); //mod is self expression function
</script>
Suppose that HTML includes this javascript code and I would like to open my Java console and call the innfunc()
or the variable inn1
, then what can I write?
perhaps something like: mod.innfunc()
?