Swap

Challenge 📝

Resources 📚

Given is an array numbers with different numbers. Return an array in which the first entry is swapped with the last. The rest remains unchanged.

#JavaScript Arrays

Medium

unsolved

function swap(numbers) {

}
Test Cases
Console Logs
JS Errors
Run Code!
flag