I’ve noticed a couple of problems in the hints to help solve this task:
At the beginning, where the problem explanation says:
“Instead, you will recieve this array:
[‘FB’, ‘Gitter’, ‘Reddit’, ‘Twitter’, ‘Medium’, ‘new tab’, ‘Netflix’, ‘YouTube’, ‘GMail’, ‘Work mail’, ‘Docs’, ‘freeCodeCamp’, ‘new tab’].”
What you actually see from running the initial code is: [‘FB’, ‘Gitter’, ‘Reddit’, ‘Twitter’, ‘Medium’, ‘new tab’, ‘Netflix’, ‘YouTube’, ‘GMail’, ‘Docs’, ‘freeCodeCamp’, ‘new tab’].
Not only is Vine missing from the array generated, but so, too, is Work Mail.
There are also inconsistencies in the part 4 of the notes, here:
“This part would close second tab (index 1) in the workWindow [‘GMail’, ‘Inbox’, ‘Work mail’, ‘Docs’, ‘freeCodeCamp’]*, which would be ‘Inbox’, and after that push a ‘new tab’ to the array, returning [‘GMail’, ‘Inbox’, ‘Work mail’, ‘Docs’, ‘freeCodeCamp’, ‘new tab’]”.
Why is ‘Inbox’ still mentioned as being in what is returned here?
Part 4 notes then go on to say that the main array “should look like this:
[‘FB’, ‘Gitter’, ‘Reddit’, ‘Twitter’, ‘Medium’, ‘new tab’, ‘Netflix’, ‘YouTube’, ‘Vine’, ‘GMail’, ‘Work mail’, ‘Docs’, ‘freeCodeCamp’, ‘new tab’] , as mentioned in the instructions”.
‘Inbox’ is at least removed here, but it goes on to say:
“If we compare the requested array and the one we recieved [sic] after running the initial code, we can see that value ‘Vine’ is omitted. Therefore, we need to see what is the cause of this.”
It makes no mention of the fact that Work Mail is also missing.
As it’s already a challenge to keep track of what is where and where it is supposed to be, I found these inconsistencies in the explanation confusing.