Help understand how exactly parameters work in array example.
In the example below, the second function takes two parameters, 'elem' and index, I think I understand 'elem'.
but how does the function know that 'index' is the arrays index? same with the third example and 'array'...
are these keywords javascript recognizes?
function printElement( elem ) {
function printElementAndIndex( elem, index ) {
console.log( "Index " + index + ": " + elem );
function negateElement( elem, index, array ) {