Creating variables inside $each confusion

Creating variables inside $each confusion

Hello,

Im thinking I have a complete misunderstanding about something.Which is nothing unusual ... 

If I'm creating variables inside an $each loop what happens in this example.

  1. $.each($arr, function (i, v) {
  2.    var $xxx =  i;
  3.    var $yyy = v;
  4.    do something ...
  5. });

Is there more than one $xxx and $yyy variable?