0
How do I connect strings to variables
For example: <script>document.write"hi"(name)</script> I want it to output: Hi Chris (If name = Chris)
2 odpowiedzi
0
"hi" + name
or
`hi ${name}`
0
if(name == 'Chris')
document.write("Hi "+name);
For example: <script>document.write"hi"(name)</script> I want it to output: Hi Chris (If name = Chris)