Introduction

Examples of interation with JavaScript. These are for discussion purposes and do NOT illustrate best practices. Instead we are using document.write() as an easy way to display outcomes, and executing JavaScript inline with the HTML.

JavaScript Iterating Over Arrays

Display Fruit in an array.

Display places you might find fruit.

Fruit in various places

Fruit in various places done a different way.