how to pass data from javascript to html

JavaScript
     var options = {
         weekday: "long",
         day: "numeric",
         month: "long"
     };

var day = today.toLocaleDateString("en-us", options)

    res.render("list", { //using res.render then giving it a permater this is a file to "pull" info from
        kindOfDay: day //kindOfDay is specified on the "list.ejs" template, then passed the value of day as a key
    }); //used within app.get function

//some options 
weekday	
"long"
"short"
"narrow"
year	
"2-digit"
"numeric"
month	
"2-digit"
"long"
"narrow"
"numeric"
"short"
day	
"2-digit"
"long"
hour	
"2-digit"
"long"
minute
"2-digit"
"long"
second	
"2-digit"
"long"
Source

Also in JavaScript: