How to set email input with logged user’s email address?

I have a contact form and I need to set by default, the email input with the current user’s email address. I have added a js file, where I set the title to an input like this

but could I get the current user’s email in a js file?