How to make a function that iterates through an array?
As I understand it,you need to make a function that will iterate over array or can be done another way?
What hour fighting over this garbage,nothing comes out
Thanks in advance!
June 10th 19 at 14:42
Symfony ServiceCircularReferenceException. What to do?
How do I record a voice answer?
Where to get new ideas in seo?
Why when installing Python is 32 bit version?
If the site uses a wss Protocol, can connect to it to send the request?
As in microservices to restrict access at the level of entities?
How to create a subscription for a blog user?
Why doesn't the file through the app?
More answers about
"How to make a function that iterates through an array?"
June 10th 19 at 14:44
What is the array you want to iterate over?
In General, methods are:
Array: sort methods
avatars,in order to cram it in a similar way
Only now I have the function pulls a random element and they are repeated
commented on June 10th 19 at 14:47
there are options
1. pre-shuffle the list.
2. to check, did not come across this item before, and pull the other. (but it will be very inefficient on large lists, which come to an end)
3. to remove the element, who pulled the arr.
PS: the Code image is very bad form. Especially when it is a link, not img.
commented on June 10th 19 at 14:50
Code I didn't send the picture,code fidle,a picture of a small piece of the task
commented on June 10th 19 at 14:53
June 10th 19 at 14:46
Here is sort of create 8 objects with different avatars like in the job
z.s. you have a test task for knowledge of OOP, read about it
Find more questions by tags