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
List few advantages of using javascript?
What is the use of decodeuri() and encodeuri()?
What is a closure and why are they so useful to us?
How to manage exception handling in javascript?
How to get value of an element by class in javascript ?
What is use of JavaScript and jquery?
What are the three core languages in web pages?
What is stack queue?
How can you detect the client operating system using javascript?
How do I save javascript?
Name the different types of pop up boxes in Javascript?
Explain promise in javascript?
How are javascript and ecma script related?
Explain window.onload and ondocumentready?
What are the ways to emit client-side javascript from server-side code in asp. Net?