第一题代码: function test(N, arr) { let res = [] while (arr.length > 0) { if (arr[0] == N) { if (res == []) { console.log(arr[0]) &nbs...