SOURCE
JavaScript
Result
const nums = [1,2,3,1,1]; const result = nums.reduce((all,curr)=> all+curr)%2; console.log(result);
console 命令行工具
X
clear
>
console