1. 程式人生 > >arguments with parameter

arguments with parameter

del class highlight arguments let for function before sha

var f =function(x) {
	console.log(x);
	console.log(arguments[0])

	console.log(‘-------------before delete-------------‘)
	x = 3;
	// arguments[0] = 3;
	// delete arguments[0];
	delete x;
	console.log(x);
	console.log(arguments[0])
}

f(2);

    

arguments with parameter