Week 4Quiz 9dAssignment: map Provide a function (or lambda expression) named 'twice' such that [1,2,3].map(twice) equals [2,4,6] Solutionconst twice = x => x * 2;Show solution Your solution will be tested against: [1,2,3].map(twice).toString() === "2,4,6"Quiz 9cQuiz 9e