I need email write on my realtime database. which email what I login to submit form [closed]

enter image description here

I need email write on my realtime database. which email what I login to submit the form.


function saveData() {
    var work = document.getElementById("work");
    var time = document.getElementById("time");
    var userEmail = {
        work: work.value,
        time: time.value
    }
    firebase.database().ref('userEmail').push(userEmail)
}

Source: Ask Javascript Questions

LEAVE A COMMENT