For my project, I want to get and print the user-agent of my browser. I'm using javascript (with node) to accomplish my goal. How can I get and print the user-agent header without using the HTTP module and html if possible and inside of this blank function:
function userAgent() {
}