- 1
help
I dont know wt to put after var lol = "hi" te?? = "i said hi"
1 Resposta
+ 4
var lol = "hi"
console.log(lol)
// Now when you run the program it would say "hi"
console.log( "i said " + lol )
// This would print "i said hi"
Alternatively, u can use "backticks" ( ` ` ) so that u can use the variable lol inside of a string, for example:
console.log(`i said ${lol}`) So you would use $ and curly braces { } inside backticks, both r correct.