![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | arthurZ |
I’m kind of new to programming and I want to know if there is a way without a for loop to discovery and use the index of an array.
Example:
var clock = [orange, yellow, abc, …, ]
If clock index is 2:
print (“spiderman”)
I dont understand the question. An array is an object with components inside. Each component has an index asociates. You want to see what the ‘current’ index of an array is? Well, You will have to create and modify the index yourself. If you tell me what you want to acomplish, may be i can help you more
p7f | 2018-12-24 21:22