<script>
function makeArray(arg1, arg2){
return [ this, arg1, arg2 ];
}
alert(window.makeArray('one', 'two'));
</script>
Question:
The output of the above script is: [Object Window], one, two, If I changed return [ this, arg1, arg2 ]; to return ( this, arg1, arg2 ); the output is: two. So what is the difference between return[] and return()?