I am new to JavaScript and came across this snippet:
function addSuffix()
{
var sString= " ";
for (var k=1, k<arguments.length; k++)
{
sString +=arguments[k] + arguments[0] + " " ;
}
return sString;
}
console.info(addSuffix('s','bow','dog','kite'));
Can somebody explain. (I have read about java script and know abouts loops etc but this example confused me mainly because of the arguments array)