Cant fully understand how to works array

Sorry, guys. But I cant understand why I constantly get a ReferenceError. Below a simple array code when you enter two digits in console.log shows numbers between them divided like % 2 .
But when I try to add capability of eliminate : null, ‘string’, and etc. it shows a ReferenceError by

for example

    for (let i = min; i <= max; i++){
    if (i % 4 == 0) {
      if (i === null) {
      return arr;

This is original code. it works but without filter

let first = +prompt('Please enter first number:');
let second = +prompt('Please enter second number ');

function arrRange(min, max) {
  let arr = [];
  for (let i = min; i <= max; i++) 
    if (i % 2 == 0) 
  return arr;

console.log(arrRange(first ,second ))

154 thoughts on “Cant fully understand how to works array”

  1. Hey there just wanted to give you a quick heads up.

    The text in your article seem to be running off the screen in Firefox.
    I’m not sure if this is a formatting issue or something to do
    with web browser compatibility but I thought I’d post to let
    you know. The style and design look great though!

    Hope you get the issue resolved soon. Thanks

  2. First of all I would like to say great blog!
    I had a quick question which I’d like to ask if you don’t mind.

    I was interested to know how you center yourself and clear your mind before writing.
    I have had trouble clearing my mind in getting my ideas out there.
    I truly do take pleasure in writing however it just seems like the first 10 to
    15 minutes are wasted just trying to figure out how to begin. Any suggestions or tips?