DEV Community

Discussion on: Three types of console.log users. Which one are you?

Collapse
 
allanjeremy profile image
Allan N Jeremy

Method one: String concatenation

We can join strings using the + operator. As a result this allows us to append a variable to a string.

console.log ('my variable :'+ myVariable);