JSFiddle - React, Tailwind, and code Playground

by Ea Bangalore

JavaScript

function a (){
  res = [];
  t = [1,2,3,4,5,6,7,8,9,10,11,12];
  for(var i = 0; i < t.length; i++){
     if(t[i] % 2 != 0)  continue;
      res.push(t[i]);
   }

  return res;
}

console.log(a());