Is it possible to execute code after the get method is finished in JavaScript, similar to how it can be done in Java (Android)?
Below is an example of my code:
mColRef.get().then(function(querySnapshot){
querySnapshot.forEach(function(doc) {
console.log(doc.id);
});
});
Can I achieve something like this in JavaScript for web development? If so, how would you go about coding it?
mColRef.get().then(function(querySnapshot){
querySnapshot.forEach(function(doc) {
console.log(doc.id);
});
}).OnCompleteListener(new OncompleteListener ....
Thank you for your assistance!