[JS] Arrays - all tasks

Solved all tasks from Arrays lecture