Which "href" value should I use for JavaScript links, "#" or "javascript:void(0)"? For this I used recursion in my code. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. As it turned out, these conditions provide the correct solution most of the times. I want to concat multiple string using concat() method it works fine but how can i make white space between them, abcdef6 I want my output like this abc def 6 with space after concate and using concate() method of JavaScript not with concate operator(+), Try this [one,two].join(' '); A sentence is composed of several words, and each word is separated from the rest by a space. Manage Settings nevertheless it works perfectly fine for relatively short strings. Your email address will not be published. (Due to variations in the HTML