+ 1

Separating values in javascript

If I want to calculate the value of x, but I want to keep it from being generated directly next to another value. Like document.write(x); And document.write(y); How can it generate as "x y" instead of "xy"?

21st Oct 2019, 9:01 PM
Monkey Jesus
Monkey Jesus - avatar
1 Answer
+ 2
Put space after x like this x + " " you can also write like this document.write(x + " " + y);
21st Oct 2019, 9:02 PM
AÍąJ
AÍąJ - avatar