In this example, We have an array of vehicles and implement the for loop on all vehicles. See the code snippet:
vehicles