JSFiddle - React, Tailwind, and code Playground
by Checha Man
JavaScript
// JS some
var arr = [4, 6, 2, 24, 16, 13, 88, 64, 28, 39, 66, 26, 9];
var odd = 0;
arr.some(function (i) {
console.log(i);
odd = i;
return i % 2;
});
alert(odd);
by Checha Man
// JS some
var arr = [4, 6, 2, 24, 16, 13, 88, 64, 28, 39, 66, 26, 9];
var odd = 0;
arr.some(function (i) {
console.log(i);
odd = i;
return i % 2;
});
alert(odd);