<script type="text/javascript">
var DYN_WEB = DYN_WEB || {};
DYN_WEB.Util = (function( Ut ) {
Ut.getResult = function ( cl, tag, el ) {
console.log(arguments)
}
return Ut;
})( DYN_WEB.Util || {} );
var links = DYN_WEB.Util.getResult('show-hide');
</script>
In chrome->console, it shows: ["show-hide"]
Question:
when script goes to this line:DYN_WEB.Util, did not reach var links yet, why console.log(arguments) can still outputs ["show-hide"] , not undefined?