I seem to be having some trouble grasping looping through arrays.
Here is a link to my remix. https://glitch.com/edit/#!/glossy-jumper
If I comment out “(pets[i] = pets[i] + ‘s’);” it will console.log the original array, but with the code left in I am receiving “undefineds”. It is adding the s to “undefined”, so it seems like my “i” is undefined, but I believe I have it defined.
Any help would be appreciated. Super new to this stuff.
Thanks,
Jon