robb33
1/28/2017 - 4:33 PM

constructor function

constructor function

function test(){
	var argValues = "";

	//arguments look like this:
	// {0: a, 1: b, 2: c}


	for (var key in arguments){
		argValues += arguments[key] + " ";

	}

	return argValues;

}

console.log(test("a", "b", "c"));