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