displaying variables

0 waqar khan · September 19, 2016
so we can also display the variables like document.write(me,you,us);
and it works but how to put spaces between them?

Post a Reply

Replies

Oldest  Newest  Rating
0 Scott Walker · September 19, 2016
You would have to concatenate them.


document.write(me + " " + you + " " + us);

 
  • 1

Javascript

131,312 followers
About

A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.

Links
Moderators