Ad
  • Default User Avatar

    size parameter's type is integer. size[i] value is always undefined.

    check the line

    if (size[i] % 2 === 0) {