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
How you can modify XAML content from JavaScript in Silverlight?
What are the data types in js?
Why javascript is so popular?
Can you explain how inheritance works in javascript?
What companies use javascript?
What do you use javascript for?
What does the delete operator do?
What is this? Var myarray = [[[]]];
How about 3+5+"8"?
What is difference between javascript and jscript?
What is number in javascript?
What typeof returns for a null value?
What is the importance of javascript?
What are 2 (shorthand) boolean operators supported by javascript
Is webassembly faster than javascript?