I am new to ExpressJS
index.js
res.render('welcome', { name : "bleh"});
welcome.html
<html lang="en">
<body>
<h1>Welcome</h1>
<script>
console.log(name)
</script>
</body>
</html>
How do I get the value of "name" in my HTML page?
via ARUNIMA
No comments:
Post a Comment