We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
哈哈哈
The text was updated successfully, but these errors were encountered:
`javascript "use strict";
const replaceArray = (arr) => { let list = []; for (let i = 0; i < arr.length; i += 2) { if (arr[i + 1] <= arr.length && list.push(arr[i + 1])) list.push(arr[i]); } return list; }
// let arr = [1,2,3,4]; // let res = replaceArray(arr); // console.log(res); `
Sorry, something went wrong.
"use strict"; const replaceArray = (arr) => { let list = []; for (let i = 0; i < arr.length; i += 2) { if (arr[i + 1] <= arr.length && list.push(arr[i + 1])) list.push(arr[i]); } return list; } // let arr = [1,2,3,4]; // let res = replaceArray(arr); // console.log(res);
No branches or pull requests
哈哈哈
The text was updated successfully, but these errors were encountered: