The golden middle

Challenge 📝

Resources 📚

Given are two arrays a and b, both have three elements. Return a new array of length 2 containing both middle (index 1) elements of the arrays.

function goldenMiddle(a, b) {

}
Test Cases
Console Logs
JS Errors
Run Code!
flag