JavaScript 가변길이 매개변수 arguments

Javascript에서 가변길이 매개변수 함수 사용
자바스크립트 가변길이 매개변수 함수 사용

1 소스 코드[ | ]

함수에 대한 인수들을 arguments라는 배열에 들어간다..

function test() {
	console.log(arguments);
}

test();
test('hello');
test('hello', 'world');
// []
// ["hello"]
// ["hello", "world"]

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}