JavaScript Express Basics Using Templates with Express Express’s Response.render Method

Vitaly Khe
Vitaly Khe
7,151 Points

Why do we use different syntax using "prompt" and "hint" variables in .pug?

h1= prompt
i: #{hint}

Can we set h1 value like this?

h1: #{prompt}