title: how can I insert organs into an empty array by the "for of" loop in javaScript
body: <p>I created a class of user and created 3 users. now I want to insert all of the users I have created into an arrey by using the for of loop.
  This is what I have done till now...</p>
  <pre><code>class User {
    name;
    email;
    address;
    isLogged; //methods login(isLogged) {
    if ((this.isLogged = true)) {
      console.log(`${this.name} is Online`);
    }
  }
  logout(isLogged) {
    if ((this.isLogged = false)) {
      console.log(`${this.name} is Offline`);
    }
  }
  getInfo() {
    console.log(`${this.name} (${this.email}) - Online `);
  }
  constructor(name, email, address, isLogged) {
    this.name = name;
    this.email = email;
    this.address = address;
    this.isLogged = isLogged;
    console.log(&quot;This user exists&quot;);
  }
  }
  const user1 = new User(&quot;osh&quot;, &quot;osh@jgh.com&quot;, &quot;ashdod&quot;, true);
  const user2 = new User(&quot;yan&quot;, &quot;yan@jhh.com&quot;, &quot;ashdod&quot;, false);
  const user3 = new User(&quot;ella&quot;, &quot;ealla@hjh.com&quot;, &quot;rishon&quot;, true);
  const users = [];
  for (let user of users) {
    users.push(user[i]);
  }
  </code></pre>
  <p>I know that I miss something but I dont Know what..
  thanks for any help</p>