- 1

help

I dont know wt to put after var lol = "hi" te?? = "i said hi"

17th Aug 2020, 5:55 PM
David Susarte Monsalve
David Susarte Monsalve - avatar
1 ответ
+ 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.
17th Aug 2020, 5:57 PM
maf
maf - avatar