Freecodecamp object Key iteration

function countOnline(usersObj) {
  // Only change code below this line
  let kounter = 0;
  for(let key in usersObj){
    if(usersObj[key].online === true){
      
      kounter++;
      
    }
  }
  return kounter;

  // Only change code above this line
}

Do you have a question?

Yes… Thanks for the response Dev.

how can i connect with you so that i can discuss with you Dev

You can write here your questions and what issues you are having

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.