function countOnline(obj) {
// change code below this line
let i=0;
for(let user in obj){
if(obj.user.online === true){
i++;
}
}
return i;
// change code above this line
}
obj.user.online
. i used : obj[user]["online"]