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
what is event bubbling and event capturing in javascript?
What are different types of inheritence? Which inheritance is followed in javascript.
How to write a comment in javascript?
Define unescape() and escape() functions?
How to add multiple functions in javascript?
What is the difference of "settimeout" function and setinterval functions in javascript
Can you explain the difference between call and apply?
How to create multiline strings in javascript?
What is the importance of