Who needs arrays and linked lists, anyways!


var position1 = 'apple';
var position2 = 'banana';
var position3 = 'cat';
var position4 = 'dog';
var position5 = 'how d\'ya like THEM loops!!!';
var counter = 1;

while (counter < 6) {
  console.log(eval('position' + counter));
  counter = counter + 1;
}
 
UPDATE: this was not written as an example of good code, but something to avoid. I'm not really sure why I found it so funny at the time.