+ 2
How do you put space in a string
How do you put space in a string? example: Input var username = prompt("Enter Your Name"); alert ("Hello" + username) Output Enter Your Name(this is a prompt) "J"(this is a prompt answer) HelloJ(this is an alert box) How do i put space between Hello and J?
3 Antworten
+ 2
Thanks Mirielle
Wow i didn't expect someone like you to reply thanks
+ 1
alert("hello, " + username);
Space is also a charecter.. Use can it like any other character.....