Task 2 from my JS part I Exam