for loop in javascript with example Example: for loop fruits = ['apple', 'orange', 'peach'] for fruit in fruits: print(fruit)