JS::가변인자함수

by Kim Ara

JavaScript

// 함수를 생성합니다.

function sumAll(){
	
  // 출력합니다.
  document.write( typeof (arguments) + ':' + arguments.length);

}

// 함수를 호출합니다.
sumAll(1,2,3,4,5);