Skip to content

Common questions (JavaScript)

How to output a variable?

To output the content of a variable you should use quotation mark instead of single or double quotes.

# correct way to output the variable
`name_of_variable`

# will not work
"name_of_variable"