Iterate Through the Keys of an Object with a Statement__

Where I am missing in belowing code ? Can someone help me please ?

Your code so far

let users = {
  Alan: {
    age: 27,
    online: false
  Jeff: {
    age: 32,
    online: true
  Sarah: {
    age: 48,
    online: false
  Ryan: {
    age: 19,
    online: true

function countOnline(obj) {
  // change code below this line
  for(let obj in users){

  // change code above this line


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:

You are using this loop in wrong way.
The obj argument in function countOnline() is object you have to iterate through.
So, you need to use that argument instead of specifically using users object.
It could go something like:

for(everyPerson in obj){
... Check the online status of everyPerson here....

See if this helps.