Write a JavaScript function which can take any number of
strings as arguments and outputs them as a single
concatenated string.

Answer Posted / madhav arora

Lets Declare two variables :"a" and "b" to solve this
problem :

var a = 'Hello world!';
var b = 'I am a JavaScript hacker.'
First of all, you can concatenate strings, sew them
together as it were:

document.write(a + b);
gives

Hello world!I am a JavaScript hacker

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is event bubbling and event capturing in javascript?

724


What are different types of inheritence? Which inheritance is followed in javascript.

647


How to write a comment in javascript?

862


Define unescape() and escape() functions?

696


How to add multiple functions in javascript?

650


What is the difference of "settimeout" function and setinterval functions in javascript

765


Can you explain the difference between call and apply?

731


How to create multiline strings in javascript?

667


What is the importance of