Fungsi dengan sejumlah input (sumber akan menjadi array)


function first(...sources)
{

	console.log(sources);
}


function run()
{
 
first("a", "b");

}
/*in the first(...sources), ... means it can have any number of parameters and all of the parameters would be elements in an array called sources*/
Javasper