Edit in JSFiddle

var foo = function(){
    document.write(arguments[0]); //affiche foo
    var args = arguments;
    
    var bar = function(){
        document.write(arguments[0]); //affiche undefined
        document.write(args[0]); //affiche foo
    }
    bar();
}
foo('foo');