When we run a forEach() function on an array depending on the way the index & items are arranged dev tools returns different output. I'm wondering if anyone knows why this happens.
Please see the images below:
When I swap the variables over from item, index to index, item the output looks different.
I wonder what makes the variable output different and why.


console.log( "a", 1 )vsconsole.log( 1, "a", ).forEach. Please edit your question to include whatconsoleimplementation (what JS environment) you are using. And it would help if you could post the code/output as text, not as paintings.