首页 > 代码库 > arguments with parameter

arguments with parameter

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