JavaScript Alert with Text & Variable | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

JavaScript Alert with Text & Variable

Is it possible to have a variable and text in the same alert? alert("text") combined with alert(variable)

14th Jan 2018, 1:40 AM
YoBoi
1 Answer
+ 1
yes. alert("text"+variable);
14th Jan 2018, 1:45 AM
Amethyst Animion
Amethyst Animion - avatar