var num = [2,4,6,8,10,12];
function print (n) {
console.log (n);
}
num.forEach(print);
My understanding was we give function's parameters to pass in arguments But above code is not passing in any arguments. I know the output, Question is how array of num's each value is passing into parameter 'n', while im just calling in function it self. To simplify How parameter 'n' is getting each value of array num ? Thank You