(function(){
const preObj=document.getElementById('object');
const preObjRef = firebase.database().ref().child('object');
preObjRef.on('value', snap => console.log(snap.val()));
}());
I followed exactly some learning videos, but still receive this error...
the error in this line of code:preObjRef.on('value', snap => console.log(snap.val()));
error text:
Uncaught SyntaxError: missing ) after argument list
)too much... - sandroocosnap => { console.log(snap.val()) } )1. Don't show us your firebase config. 2. Don't EVER post code as picture - always post it in the question (copy&paste?!) - sandrooco