'strict mode'; var arg = 'global'; function foo(arg){ document.write(arg); //affiche undefined arg = arg || 'local'; document.write(arg); //affiche local } foo(); document.write(arg); //affiche global