Answer:
See the sample algorithm below.
Explanation:
array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 22];
function last_even(arr) {
for( i = arr.length-1; i >= 0; i--) {
if (arr[i] % 2 == 0) {
console.log(arr[i]);
break;
}
else {
console.log("There is no even number!");
last_even(array);
because it's a good thing
The answer & explanation for this question is given in the attachment below.
afefdasf
false