Exam (elaborations)
Hack Reactor Module 1: Diagnostic Skills Check questions and answers 2023
- Course
- Institution
Write a function 'transformFirstAndLast' that takes in an array, and returns an object with: 1) the first element of the array as the object's key, and 2) the last element of the array as that key's value. Example input: var input = ['Queen', 'Elizabeth', 'Of Hearts', 'Beyonce']; Function's...
[Show more]