how to access data in firebase realtime

JavaScript
firebase.db().onSnapshot(snapshot => {
	console.log(snapshot.docs());
})
Source

Also in JavaScript: