Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why are arrays usually processed with for loop?
#1
Arrays comes from their facility of using an index variable to traverse the array, accessing each element with the same expression a[i]. All the is needed to make this work is a iterated statement in which the variable i serves as a counter, incrementing from 0 to a.length -1. That is exactly what a loop does.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  How to create arrays in javaScripts? Kajal 2 3,104 07-15-2020, 11:52 AM
Last Post: RH-Calvin

Forum Jump:


Users browsing this thread: 1 Guest(s)